fix mbuf leak in smallest way, check in for 4.3 betas
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Thu, 20 Jun 1985 00:10:12 +0000 (16:10 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Thu, 20 Jun 1985 00:10:12 +0000 (16:10 -0800)
SCCS-vsn: sys/netns/spp_usrreq.c 6.4

usr/src/sys/netns/spp_usrreq.c

index 67d213b..10ce88b 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)spp_usrreq.c        6.3 (Berkeley) %G%
+ *     @(#)spp_usrreq.c        6.4 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -264,8 +264,10 @@ register struct spidp *si;
         * If this is a system packet, we don't need to
         * queue it up, and won't update acknowledge #
         */
         * If this is a system packet, we don't need to
         * queue it up, and won't update acknowledge #
         */
-       if (si->si_cc & SP_SP)
+       if (si->si_cc & SP_SP) {
+               m_freem(dtom(si));
                return (0);
                return (0);
+       }
 
        /*
         * If this packet number has a sequence number less
 
        /*
         * If this packet number has a sequence number less