Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177501921
D61386.1794575095.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61386.1794575095.diff
View Options
diff --git a/sys/netipsec/xform_ah.c b/sys/netipsec/xform_ah.c
--- a/sys/netipsec/xform_ah.c
+++ b/sys/netipsec/xform_ah.c
@@ -832,7 +832,6 @@
return error;
bad:
ipsec_sahtree_runlock(&sahtree_tracker);
- CURVNET_RESTORE();
if (sav)
key_freesav(&sav);
if (m != NULL)
@@ -841,6 +840,7 @@
free(xd, M_AH);
if (crp != NULL)
crypto_freereq(crp);
+ CURVNET_RESTORE();
return error;
}
@@ -1166,11 +1166,11 @@
CURVNET_RESTORE();
return (error);
bad:
- CURVNET_RESTORE();
free(xd, M_AH);
crypto_freereq(crp);
key_freesav(&sav);
key_freesp(&sp);
+ CURVNET_RESTORE();
return (error);
}
diff --git a/sys/netipsec/xform_ipcomp.c b/sys/netipsec/xform_ipcomp.c
--- a/sys/netipsec/xform_ipcomp.c
+++ b/sys/netipsec/xform_ipcomp.c
@@ -392,7 +392,6 @@
return error;
bad:
ipsec_sahtree_runlock(&sahtree_tracker);
- CURVNET_RESTORE();
if (sav != NULL)
key_freesav(&sav);
if (m != NULL)
@@ -401,6 +400,7 @@
free(xd, M_IPCOMP);
if (crp != NULL)
crypto_freereq(crp);
+ CURVNET_RESTORE();
return error;
}
@@ -669,11 +669,11 @@
bad:
if (m)
m_freem(m);
- CURVNET_RESTORE();
free(xd, M_IPCOMP);
crypto_freereq(crp);
key_freesav(&sav);
key_freesp(&sp);
+ CURVNET_RESTORE();
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 13, 1:04 PM (9 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41694866
Default Alt Text
D61386.1794575095.diff (1 KB)
Attached To
Mode
D61386: netipsec: Release the SA inside the vnet context in AH and IPComp callbacks
Attached
Detach File
Event Timeline