svn commit: r268867 - head/lib/libc/net
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"
討論串 (同標題文章)
完整討論串 (本文為第 1 之 5 篇):