Source-Changes-HG archive

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

[src/trunk]: src/sys/net ppp_dequeue: fix a mbuf leak/packet loss introduced ...



details:   https://anonhg.NetBSD.org/src/rev/a777c27083d0
branches:  trunk
changeset: 586785:a777c27083d0
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Jan 02 01:42:36 2006 +0000

description:
ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.

diffstat:

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

diffs (27 lines):

diff -r 9c8c38398513 -r a777c27083d0 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c  Sun Jan 01 19:02:08 2006 +0000
+++ b/sys/net/if_ppp.c  Mon Jan 02 01:42:36 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ppp.c,v 1.104 2005/12/28 08:13:24 christos Exp $    */
+/*     $NetBSD: if_ppp.c,v 1.105 2006/01/02 01:42:36 yamt Exp $        */
 /*     Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp       */
 
 /*
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.104 2005/12/28 08:13:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.105 2006/01/02 01:42:36 yamt Exp $");
 
 #include "ppp.h"
 
@@ -1140,7 +1140,7 @@
     } else {
        sc->sc_nfastq = 0;
        IFQ_DEQUEUE(&sc->sc_if.if_snd, m);
-       if (m != NULL) {
+       if (m == NULL) {
            IF_DEQUEUE(&sc->sc_fastq, m);
            if (m != NULL)
                sc->sc_nfastq++;



Home | Main Index | Thread Index | Old Index