Page MenuHomeFreeBSD

D34054.diff
No OneTemporary

D34054.diff

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

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)

Event Timeline