skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 678fa94b3ab7995f01cd7c38feaba2cdb048e761
parent 6319ac5225aec738f134f338f68109822581bff1
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sat,  6 Dec 2014 18:56:08 +0000

Fix: adjust unixmessage_receiver_fill() math after recvmsg(). </3

Diffstat:
Msrc/libunixonacid/unixmessage_receive.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) ;