diff options
| author | 2015-09-29 10:11:40 +0000 | |
|---|---|---|
| committer | 2015-09-29 10:11:40 +0000 | |
| commit | 0985b8831d33cee65e5f0ae4595ac1fc728cec55 (patch) | |
| tree | 9ea3be046d2cdd3a4f00f5be159deb3c058eb61d /sys/net/if_ethersubr.c | |
| parent | unbreak tree. (diff) | |
| download | wireguard-openbsd-0985b8831d33cee65e5f0ae4595ac1fc728cec55.tar.xz wireguard-openbsd-0985b8831d33cee65e5f0ae4595ac1fc728cec55.zip | |
add sizes to some of the simpler free calls
ok mpi
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--; |
