diff options
author | 2016-01-13 09:38:36 +0000 | |
---|---|---|
committer | 2016-01-13 09:38:36 +0000 | |
commit | 7cf86a87491938f8d6e8ad703d29f1b88da9ce91 (patch) | |
tree | 371cbd14468010920be62a8750f403f7f6a5abfb /sys/netinet/ip_output.c | |
parent | Make 'ifconfig $if mode' a valid subcommand that works independently of (diff) | |
download | wireguard-openbsd-7cf86a87491938f8d6e8ad703d29f1b88da9ce91.tar.xz wireguard-openbsd-7cf86a87491938f8d6e8ad703d29f1b88da9ce91.zip |
Prevent a double if_put().
ok mikeb@, bluhm@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 3 |
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 |