Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164793241
D2980.id6661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
563 B
Referenced Files
None
Subscribers
None
D2980.id6661.diff
View Options
Index: sys/netipsec/ipsec.c
===================================================================
--- sys/netipsec/ipsec.c
+++ sys/netipsec/ipsec.c
@@ -334,6 +334,12 @@
IPSEC_ASSERT(dir == IPSEC_DIR_INBOUND || dir == IPSEC_DIR_OUTBOUND,
("invalid direction %u", dir));
+ if (!key_havesp(dir)) {
+ /* No SP found, use system default. */
+ sp = KEY_ALLOCSP_DEFAULT();
+ return (sp);
+ }
+
/* Set spidx in pcb. */
*error = ipsec_setspidx_inpcb(m, inp);
if (*error)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 2:10 AM (3 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35981886
Default Alt Text
D2980.id6661.diff (563 B)
Attached To
Mode
D2980: Reduce overhead of IPSEC for traffic generated from host
Attached
Detach File
Event Timeline
Log In to Comment