Date: Sat, 19 Jul 2014 01:53:52 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268867 - head/lib/libc/net Message-ID: <201407190153.s6J1rqBn027367@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Sat Jul 19 01:53:52 2014 New Revision: 268867 URL: http://svnweb.freebsd.org/changeset/base/268867 Log: Use unsigned optlen in getsourcefilter() Sizes can not be negative and the functions that use it expect an unsigned value anyways. Obtained from: Apple (Libc-997.90.3) MFC after: 1 week Modified: head/lib/libc/net/sourcefilter.c Modified: head/lib/libc/net/sourcefilter.c ============================================================================== --- head/lib/libc/net/sourcefilter.c Sat Jul 19 01:15:01 2014 (r268866) +++ head/lib/libc/net/sourcefilter.c Sat Jul 19 01:53:52 2014 (r268867) @@ -337,7 +337,8 @@ getsourcefilter(int s, uint32_t interfac { struct __msfilterreq msfr; sockunion_t *psu; - int err, level, nsrcs, optlen, optname; + int err, level, nsrcs, optname; + unsigned int optlen; if (interface == 0 || group == NULL || numsrc == NULL || fmode == NULL) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407190153.s6J1rqBn027367>