aboutsummaryrefslogtreecommitdiff
path: root/sys/netatalk
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1996-09-11 09:38:52 +0000
committerJulian Elischer <julian@FreeBSD.org>1996-09-11 09:38:52 +0000
commit99e76479b5c6e6974086ae6bf4bc783e78e6141f (patch)
tree295dec2bf262d8a984119a8ff354b8d95c790472 /sys/netatalk
parent79b69435d915fc841540c5405d8a90012dc02d1c (diff)
downloadsrc-99e76479b5c6e6974086ae6bf4bc783e78e6141f.tar.gz
src-99e76479b5c6e6974086ae6bf4bc783e78e6141f.zip
bzero the entire at_ifaddr struct we malloc, not just the first part of it..
Notes
Notes: svn path=/head/; revision=18244
Diffstat (limited to 'sys/netatalk')
-rw-r--r--sys/netatalk/at_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c
index 712d27ed5dd3..65608b72815d 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