diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-06 18:56:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-06 18:56:08 +0000 |
commit | 678fa94b3ab7995f01cd7c38feaba2cdb048e761 (patch) | |
tree | 4e52144998cc7f56580b88b69da52d83b7feb307 /src | |
parent | 6319ac5225aec738f134f338f68109822581bff1 (diff) | |
download | skalibs-678fa94b3ab7995f01cd7c38feaba2cdb048e761.tar.xz |
Fix: adjust unixmessage_receiver_fill() math after recvmsg(). </3
Diffstat (limited to 'src')
-rw-r--r-- | src/libunixonacid/unixmessage_receive.c | 2 |
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) ; |