diff options
author | pfg <pfg@FreeBSD.org> | 2014-07-19 01:53:52 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-07-19 01:53:52 +0000 |
commit | b52adc3cf784516c00d22e01d78cc3affddab3bd (patch) | |
tree | 47a115cd3e2ebc85dbf31ba648fb317416fb3fcc /lib/libc | |
parent | d4b169f0181fa195796d057cf4c7fcefa92c849c (diff) | |
download | FreeBSD-src-b52adc3cf784516c00d22e01d78cc3affddab3bd.zip FreeBSD-src-b52adc3cf784516c00d22e01d78cc3affddab3bd.tar.gz |
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
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/sourcefilter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/sourcefilter.c b/lib/libc/net/sourcefilter.c index 4d29d9f..2fe9913 100644 --- a/lib/libc/net/sourcefilter.c +++ b/lib/libc/net/sourcefilter.c @@ -337,7 +337,8 @@ getsourcefilter(int s, uint32_t interface, struct sockaddr *group, { 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) { |