mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 1027300: Check for ioctl error return. r=mt
This commit is contained in:
parent
382f4efc2f
commit
90874fd582
@ -615,6 +615,12 @@ stun_get_siocgifconf_addrs(nr_local_addr addrs[], int maxaddrs, int *count)
|
||||
ifc.ifc_buf = buf;
|
||||
|
||||
e = ioctl(s,SIOCGIFCONF,&ifc);
|
||||
|
||||
if ( e == -1 )
|
||||
{
|
||||
return(R_INTERNAL);
|
||||
}
|
||||
|
||||
ptr = buf;
|
||||
tl = ifc.ifc_len;
|
||||
n=0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user