ubusd: fix offset calculation (based on patch by Yang Chao)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
e59b445734
commit
ab1bffddb3
1 changed files with 1 additions and 1 deletions
2
ubusd.c
2
ubusd.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue