DEVEL15-rx-memset-param-swap-20061011

discovered via google codesearch


(cherry picked from commit e870e08280c27e6164b240be74057744352d7371)
This commit is contained in:
Peter Nelson 2006-10-11 12:31:38 +00:00 committed by Jeffrey Altman
parent c15cc959f5
commit 44c4045c29

View File

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