diff options
author | julian <julian@FreeBSD.org> | 1996-09-11 09:38:52 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1996-09-11 09:38:52 +0000 |
commit | 8094829bdc6bf27e7f129edd13b0248049165808 (patch) | |
tree | 295dec2bf262d8a984119a8ff354b8d95c790472 | |
parent | 3ed54b53190eb2d5067017830ea88dcba03ff99e (diff) | |
download | FreeBSD-src-8094829bdc6bf27e7f129edd13b0248049165808.zip FreeBSD-src-8094829bdc6bf27e7f129edd13b0248049165808.tar.gz |
bzero the entire at_ifaddr struct we malloc, not just the first part of it..
-rw-r--r-- | sys/netatalk/at_control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 712d27e..65608b7 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -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 |