Date: Wed, 29 Apr 2009 09:58:31 +0000 (UTC) From: Bruce M Simpson <bms@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/net sourcefilter.c Message-ID: <200904290958.n3T9wjQZ059332@repoman.freebsd.org>
index | next in thread | raw e-mail
bms 2009-04-29 09:58:31 UTC
FreeBSD src repository
Modified files:
lib/libc/net sourcefilter.c
Log:
SVN rev 191654 on 2009-04-29 09:58:31Z by bms
Fix an obvious bug in getsourcefilter()'s use of struct __msfilterreq;
the kernel will return in msfr_nsrcs the number of source filters
in-mode for a given multicast group.
However, the filters themselves were never copied out, as the libc
function clobbers this field with zero, causing the kernel to assume
the provided vector of struct sockaddr_storage has zero length.
This bug would only affect users of SSM multicast, which is shimmed
in 7.x.
Picked up during mtest(8) refactoring.
MFC after: 1 day
Revision Changes Path
1.5 +3 -2 src/lib/libc/net/sourcefilter.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904290958.n3T9wjQZ059332>
