diff options
author | 2015-09-21 11:27:08 +0000 | |
---|---|---|
committer | 2015-09-21 11:27:08 +0000 | |
commit | f10063a402e0734fb7713b35e29b6a9dae86ce9e (patch) | |
tree | 6e233446e4a0b6ac7e354bdcce4ef8526af908f8 | |
parent | Set the correct priority for connected routes. (diff) | |
download | wireguard-openbsd-f10063a402e0734fb7713b35e29b6a9dae86ce9e.tar.xz wireguard-openbsd-f10063a402e0734fb7713b35e29b6a9dae86ce9e.zip |
Pass the correct variable to free(9) and while here add the size.
From David Hill, ok sthen@
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 77adb3f9b0c..d8a2d55e88e 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.170 2015/09/11 16:58:00 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.171 2015/09/21 11:27:08 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -166,7 +166,7 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, else error = raw_attach(so, (int)(long)nam); if (error) { - free(rp, M_PCB, 0); + free(rop, M_PCB, sizeof(struct routecb)); splx(s); return (error); } |