mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
bzero the entire at_ifaddr struct we malloc, not just the first part of it..
This commit is contained in:
parent
79b69435d9
commit
99e76479b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18244
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue