diff options
author | 2009-06-22 19:01:56 +0000 | |
---|---|---|
committer | 2009-06-22 19:01:56 +0000 | |
commit | 0b85e20f4b1663bc0f0a7357286993672dd66a74 (patch) | |
tree | bbf0c50a3f299ec54f14793ade337fda7afb6541 | |
parent | Check that the address family is appropriate before processing ICMPv4 and (diff) | |
download | wireguard-openbsd-0b85e20f4b1663bc0f0a7357286993672dd66a74.tar.xz wireguard-openbsd-0b85e20f4b1663bc0f0a7357286993672dd66a74.zip |
Remove unneeded sotorawpcb() call, as the PCB is unmolested between
malloc()ing it and calling that macro.
No functional change, just tightening things up a bit.
ok claudio@ michele@
-rw-r--r-- | sys/net/rtsock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 28f9283f6ce..92bbbb63bbf 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.90 2009/06/20 10:39:52 blambert Exp $ */ +/* $OpenBSD: rtsock.c,v 1.91 2009/06/22 19:01:56 blambert Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -161,7 +161,6 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, } else error = raw_usrreq(so, req, m, nam, control, p); - rp = sotorawcb(so); if (req == PRU_ATTACH && rp) { int af = rp->rcb_proto.sp_protocol; if (error) { |