Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102048918
D34054.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
893 B
Referenced Files
None
Subscribers
None
D34054.diff
View Options
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -239,6 +239,7 @@
* packet.
*/
if (mst == NULL) {
+ m_freem(m);
error = EAGAIN;
goto done;
}
@@ -263,6 +264,7 @@
KASSERT(m->m_pkthdr.rcvif == NULL,
("trying to add a send tag to a forwarded packet"));
if (mst->ifp != ifp) {
+ m_freem(m);
error = EAGAIN;
goto done;
}
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -336,6 +336,7 @@
* packet.
*/
if (mst == NULL) {
+ m_freem(m);
error = EAGAIN;
goto done;
}
@@ -360,6 +361,7 @@
KASSERT(m->m_pkthdr.rcvif == NULL,
("trying to add a send tag to a forwarded packet"));
if (mst->ifp != ifp) {
+ m_freem(m);
error = EAGAIN;
goto done;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 11:35 PM (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14523176
Default Alt Text
D34054.diff (893 B)
Attached To
Mode
D34054: Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues
Attached
Detach File
Event Timeline
Log In to Comment