bzero the entire at_ifaddr struct we malloc, not just the first part of it..

This commit is contained in:
Julian Elischer 1996-09-11 09:38:52 +00:00
parent 79b69435d9
commit 99e76479b5

View File

@ -140,7 +140,7 @@ at_control( int cmd, caddr_t data, struct ifnet *ifp, struct proc *p )
*/
if ( aa == (struct at_ifaddr *) 0 ) {
aa0 = malloc(sizeof(struct at_ifaddr), M_IFADDR, M_WAITOK);
bzero(aa0, sizeof(struct ifaddr));
bzero(aa0, sizeof(struct at_ifaddr));
if (( aa = at_ifaddr ) != NULL ) {
/*
* Don't let the loopback be first, since the first