summaryrefslogtreecommitdiff
path: root/src/libunixonacid
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-06 18:56:08 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-06 18:56:08 +0000
commit678fa94b3ab7995f01cd7c38feaba2cdb048e761 (patch)
tree4e52144998cc7f56580b88b69da52d83b7feb307 /src/libunixonacid
parent6319ac5225aec738f134f338f68109822581bff1 (diff)
downloadskalibs-678fa94b3ab7995f01cd7c38feaba2cdb048e761.tar.xz
Fix: adjust unixmessage_receiver_fill() math after recvmsg(). </3
Diffstat (limited to 'src/libunixonacid')
-rw-r--r--src/libunixonacid/unixmessage_receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunixonacid/unixmessage_receive.c b/src/libunixonacid/unixmessage_receive.c
index fed1b03..5ff81bf 100644
--- a/src/libunixonacid/unixmessage_receive.c
+++ b/src/libunixonacid/unixmessage_receive.c
@@ -63,7 +63,7 @@ static int unixmessage_receiver_fill (unixmessage_receiver_t *b, diuint *d)
if (cbuffer_put(&b->auxb, (char *)CMSG_DATA(c), auxlen) < auxlen)
return (errno = ENOBUFS, -1) ;
d->right = auxlen / sizeof(int) ;
- r -= c->cmsg_len ;
+ r -= msghdr.msg_controllen ;
}
}
d->left = cbuffer_WSEEK(&b->mainb, r) ;