diff options
author | bz <bz@FreeBSD.org> | 2008-03-14 11:55:04 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-03-14 11:55:04 +0000 |
commit | 51315b3d89073a6bd52254b32653baa2d1d20e4f (patch) | |
tree | 2b4540e1f1a0bc5db01609e2656c9f450460577c /sys/netinet6/ip6_output.c | |
parent | f507f0e4fa09490b9ebafe2650f0d70e6daa51e9 (diff) | |
download | FreeBSD-src-51315b3d89073a6bd52254b32653baa2d1d20e4f.zip FreeBSD-src-51315b3d89073a6bd52254b32653baa2d1d20e4f.tar.gz |
Correct reference counting on the SP for outgoing IPv6 IPsec connections.
PR: 121374
Reported by: Cyrus Rahman (crahman gmail.com)
Tested by: Cyrus Rahman (crahman gmail.com)
MFC after: 5 days
Diffstat (limited to 'sys/netinet6/ip6_output.c')
-rw-r--r-- | sys/netinet6/ip6_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 5755a1f..2336e41 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1082,6 +1082,10 @@ done: } else if (ro_pmtu == &ip6route && ro_pmtu->ro_rt) { RTFREE(ro_pmtu->ro_rt); } +#ifdef IPSEC + if (sp != NULL) + KEY_FREESP(&sp); +#endif return (error); |