rx-memset-param-swap-20061011

discovered via google codesearch
This commit is contained in:
Peter Nelson 2006-10-11 11:29:58 +00:00 committed by Jeffrey Altman
parent f72c2fc3e7
commit e870e08280

View File

@ -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)