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
This commit is contained in:
parent
9f7289bfc4
commit
bef4f148b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user