mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
rx-memset-param-swap-20061011
discovered via google codesearch
This commit is contained in:
parent
f72c2fc3e7
commit
e870e08280
@ -304,7 +304,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…
Reference in New Issue
Block a user