Page MenuHomeFreeBSD

D62098.1795755880.diff
No OneTemporary

Authored By
Unknown
Size
987 B
Referenced Files
None
Subscribers
None

D62098.1795755880.diff

diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -765,7 +765,7 @@
if (V_ip6_hdrnestlimit && (++nest > V_ip6_hdrnestlimit)) {
IP6STAT_INC(ip6s_toomanyhdr);
error = EINVAL;
- goto bad;
+ goto bad_unlocked;
}
/*
@@ -776,7 +776,7 @@
IP6STAT_INC(ip6s_tooshort);
in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated);
error = EINVAL;
- goto bad;
+ goto bad_unlocked;
}
/*
* Enforce IPsec policy checking if we are seeing last header.
@@ -785,7 +785,7 @@
*/
if (ipsec6_lasthdr(nxt) && ipsec6_in_reject(m, NULL)) {
error = EINVAL;
- goto bad;
+ goto bad_unlocked;
}
/*
* AH, ESP and IPComp are not in ip6_protox[]; as in
@@ -804,8 +804,9 @@
key_freesav(&sav);
return (error);
bad:
- NET_EPOCH_EXIT(et);
ipsec_sahtree_runlock(sahtree_tracker);
+bad_unlocked:
+ NET_EPOCH_EXIT(et);
key_freesav(&sav);
if (m)
m_freem(m);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 27, 5:04 AM (18 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42035198
Default Alt Text
D62098.1795755880.diff (987 B)

Event Timeline