Date: Sun, 17 May 2009 15:42:41 +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: <200905171542.n4HFgwvc045906@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bms 2009-05-17 15:42:41 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
lib/libc/net sourcefilter.c
Log:
SVN rev 192251 on 2009-05-17 15:42:41Z by bms
MFC rev 191654:
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.
Revision Changes Path
1.3.2.1 +16 -18 src/lib/libc/net/sourcefilter.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905171542.n4HFgwvc045906>
