svn commit: r268867 - head/lib/libc/net

看板FB_svn作者時間11年前 (2014/07/19 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/5 (看更多)
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) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1JoT5U3V (FB_svn)
文章代碼(AID): #1JoT5U3V (FB_svn)