diff options
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 39582a53cfa..ee86161095f 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.227 2015/09/27 16:50:40 stsp Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.228 2015/09/29 10:11:40 deraadt Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -537,7 +537,7 @@ ether_ifdetach(struct ifnet *ifp) enm != NULL; enm = LIST_FIRST(&ac->ac_multiaddrs)) { LIST_REMOVE(enm, enm_list); - free(enm, M_IFMADDR, 0); + free(enm, M_IFMADDR, sizeof *enm); } } @@ -821,7 +821,7 @@ ether_delmulti(struct ifreq *ifr, struct arpcom *ac) * No remaining claims to this record; unlink and free it. */ LIST_REMOVE(enm, enm_list); - free(enm, M_IFMADDR, 0); + free(enm, M_IFMADDR, sizeof *enm); ac->ac_multicnt--; if (memcmp(addrlo, addrhi, ETHER_ADDR_LEN) != 0) ac->ac_multirangecnt--; |
