Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net After freeing the input buffer, set the pointer to i...



details:   https://anonhg.NetBSD.org/src/rev/13bea2b7b3e5
branches:  trunk
changeset: 502155:13bea2b7b3e5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jan 12 19:27:32 2001 +0000

description:
After freeing the input buffer, set the pointer to it to NULL.

diffstat:

 sys/net/if_sl.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r fe97ce0d4250 -r 13bea2b7b3e5 sys/net/if_sl.c
--- a/sys/net/if_sl.c   Fri Jan 12 19:26:48 2001 +0000
+++ b/sys/net/if_sl.c   Fri Jan 12 19:27:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sl.c,v 1.69 2001/01/12 19:26:48 thorpej Exp $       */
+/*     $NetBSD: if_sl.c,v 1.70 2001/01/12 19:27:32 thorpej Exp $       */
 
 /*
  * Copyright (c) 1987, 1989, 1992, 1993
@@ -324,6 +324,7 @@
                tp->t_sc = NULL;
 
                m_freem(sc->sc_mbuf);
+               sc->sc_mbuf = NULL;
                sc->sc_ep = sc->sc_mp = sc->sc_pktstart = NULL;
                IF_PURGE(&sc->sc_inq);
 



Home | Main Index | Thread Index | Old Index