diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
commit | b61c55cb5375d200c9265da3d637a192c9d0eb09 (patch) | |
tree | e928c207d5e190d37f968823442a430eee8354d2 /sys/net/pfkey.c | |
parent | ebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff) |
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/pfkey.c')
-rw-r--r-- | sys/net/pfkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkey.c b/sys/net/pfkey.c index 64425ed7cd5..d4f646a588a 100644 --- a/sys/net/pfkey.c +++ b/sys/net/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.22 2014/09/08 06:24:13 jsg Exp $ */ +/* $OpenBSD: pfkey.c,v 1.23 2014/11/23 07:39:02 deraadt Exp $ */ /* * @(#)COPYRIGHT 1.1 (NRL) 17 January 1995 @@ -218,7 +218,7 @@ pfkey_attach(struct socket *socket, struct mbuf *proto, struct proc *p) return (0); ret: - free(socket->so_pcb, M_PCB, 0); + free(socket->so_pcb, M_PCB, sizeof(struct rawcb)); return (rval); } |