Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175163369
D52170.id161328.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
447 B
Referenced Files
None
Subscribers
None
D52170.id161328.diff
View Options
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -258,8 +258,11 @@
filtered = (*up->u_tun_func)(n, off, inp, (struct sockaddr *)&udp_in[0],
up->u_tun_ctx);
INP_RLOCK(inp);
- if (in_pcbrele_rlocked(inp))
+ if (in_pcbrele_rlocked(inp)) {
+ if (!filtered)
+ m_freem(n);
return (1);
+ }
if (filtered) {
INP_RUNLOCK(inp);
return (1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 9, 7:00 PM (38 m, 7 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40499031
Default Alt Text
D52170.id161328.diff (447 B)
Attached To
Mode
D52170: udp: don't leak mbuf if tunnel didn't consume and inpcb is gone
Attached
Detach File
Event Timeline
Log In to Comment