summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-01-13 09:38:38 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-01-13 09:38:38 +0000
commit174badf2408367eb2b49fe3b13424488b0282231 (patch)
tree8f4642b128f2233ba461ce28d778959c1fd70aa9 /sys/netinet
parent75a803c95c275cc94ecac0572d5450a0453eca44 (diff)
Prevent a double if_put().
ok mikeb@, bluhm@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 6dedd8789e6..070a56b6bd1 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.315 2015/12/05 10:52:26 tedu Exp $ */
+/* $OpenBSD: ip_output.c,v 1.316 2016/01/13 09:38:36 mpi Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -419,6 +419,7 @@ sendit:
m->m_pkthdr.pf.flags |= PF_TAG_GENERATED;
ro = NULL;
if_put(ifp); /* drop reference since target changed */
+ ifp = NULL;
goto reroute;
}
#endif