Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Add missing m_put_rcvif_psref.



details:   https://anonhg.NetBSD.org/src/rev/ffb55935b5e1
branches:  trunk
changeset: 322804:ffb55935b5e1
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri May 18 21:03:33 2018 +0000

description:
Add missing m_put_rcvif_psref.

diffstat:

 sys/netinet6/nd6_rtr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r cbe06c03b0ec -r ffb55935b5e1 sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c    Fri May 18 20:24:57 2018 +0000
+++ b/sys/netinet6/nd6_rtr.c    Fri May 18 21:03:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_rtr.c,v 1.141 2018/05/01 07:21:39 maxv Exp $       */
+/*     $NetBSD: nd6_rtr.c,v 1.142 2018/05/18 21:03:33 maxv Exp $       */
 /*     $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $        */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.141 2018/05/01 07:21:39 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.142 2018/05/18 21:03:33 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -177,6 +177,7 @@
        IP6_EXTHDR_GET(nd_rs, struct nd_router_solicit *, m, off, icmp6len);
        if (nd_rs == NULL) {
                ICMP6_STATINC(ICMP6_STAT_TOOSHORT);
+               m_put_rcvif_psref(ifp, &psref);
                return;
        }
 



Home | Main Index | Thread Index | Old Index