ubusd: fix offset calculation (based on patch by Yang Chao)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2015-07-06 18:42:36 +02:00
parent e59b445734
commit ab1bffddb3

View file

@ -242,7 +242,7 @@ retry:
fd_buf.fd = -1;
iov.iov_base = &cl->hdrbuf + offset;
iov.iov_base = ((char *) &cl->hdrbuf) + offset;
iov.iov_len = sizeof(cl->hdrbuf) - offset;
if (cl->pending_msg_fd < 0) {