diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-04-15 19:11:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-04-15 19:11:34 +0000 |
commit | b92d9ddfb48b4e89a2a4c0cd300b46213fcc5cb0 (patch) | |
tree | f1e2a282bb922d0319e2492f95ce7a15d67c0384 | |
parent | 2368868392b3e74987d462b27e71340d144d43ad (diff) | |
download | FreeBSD-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>
-rw-r--r-- | sys/net/if_ppp.c | 1 |
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++; |