summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-04-15 19:11:34 +0000
committerrwatson <rwatson@FreeBSD.org>2004-04-15 19:11:34 +0000
commitb92d9ddfb48b4e89a2a4c0cd300b46213fcc5cb0 (patch)
treef1e2a282bb922d0319e2492f95ce7a15d67c0384 /sys/net/if_ppp.c
parent2368868392b3e74987d462b27e71340d144d43ad (diff)
downloadFreeBSD-src-b92d9ddfb48b4e89a2a4c0cd300b46213fcc5cb0.zip
FreeBSD-src-b92d9ddfb48b4e89a2a4c0cd300b46213fcc5cb0.tar.gz
If IF_HANDOFF() or netisr_queue() fail, they will free the mbuf. When
this happens, set (m) to NULL or we'll try to free it a second time on return. Submitted by: Pavel Gulchouck <gul@gul.kiev.ua>
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index e0d24c1..c31b262 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1579,6 +1579,7 @@ ppp_inproc(sc, m)
if (sc->sc_flags & SC_DEBUG)
if_printf(ifp, "input queue full\n");
ifp->if_iqdrops++;
+ m = NULL;
goto bad;
}
ifp->if_ipackets++;
OpenPOWER on IntegriCloud