Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115913195
D29420.id86294.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
473 B
Referenced Files
None
Subscribers
None
D29420.id86294.diff
View Options
Index: sys/netinet/ip_divert.c
===================================================================
--- sys/netinet/ip_divert.c
+++ sys/netinet/ip_divert.c
@@ -280,6 +280,10 @@
/* XXX why does only one socket match? */
if (inp->inp_lport == nport) {
INP_RLOCK(inp);
+ if (__predict_false(inp->inp_flags2 & INP_FREED)) {
+ INP_RUNLOCK(inp);
+ continue;
+ }
sa = inp->inp_socket;
SOCKBUF_LOCK(&sa->so_rcv);
if (sbappendaddr_locked(&sa->so_rcv,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 8:18 AM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17877493
Default Alt Text
D29420.id86294.diff (473 B)
Attached To
Mode
D29420: ip_divert: check that PCB is still valid after INP_RLOCK taking
Attached
Detach File
Event Timeline
Log In to Comment