mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-rx-memset-param-swap-20061011
discovered via google codesearch (cherry picked from commit e870e08280c27e6164b240be74057744352d7371)
This commit is contained in:
parent
c15cc959f5
commit
44c4045c29
@ -301,7 +301,7 @@ rxi_getAllAddrMaskMtu(afs_int32 addrBuffer[], afs_int32 maskBuffer[],
|
||||
maskBuffer[count] = a->sin_addr.s_addr;
|
||||
else
|
||||
maskBuffer[count] = htonl(0xffffffff);
|
||||
memset(&ifr, sizeof(ifr), 0);
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
ifr.ifr_addr.sa_family = AF_INET;
|
||||
strncpy(ifr.ifr_name, sdl->sdl_data, sdl->sdl_nlen);
|
||||
if (ioctl(s, SIOCGIFMTU, (caddr_t) & ifr) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user