Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173716429
D57341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
396 B
Referenced Files
None
Subscribers
None
D57341.diff
View Options
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -862,11 +862,9 @@
ulen = m->m_pkthdr.len;
plen = sizeof(struct udphdr) + ulen;
hlen = sizeof(struct ip6_hdr);
-
if (plen > IPV6_MAXPAYLOAD) {
- m_freem(control);
- m_freem(m);
- return (EMSGSIZE);
+ error = EMSGSIZE;
+ goto release;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 28, 10:13 PM (4 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39837817
Default Alt Text
D57341.diff (396 B)
Attached To
Mode
D57341: udp: Fix resource leaks in an error path in udp6_send()
Attached
Detach File
Event Timeline
Log In to Comment