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 curlwp_bindx



details:   https://anonhg.NetBSD.org/src/rev/5594fa0a5271
branches:  trunk
changeset: 828631:5594fa0a5271
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Dec 22 09:53:06 2017 +0000

description:
Add missing curlwp_bindx

diffstat:

 sys/netinet6/in6_pcb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r c586d4cc0ed3 -r 5594fa0a5271 sys/netinet6/in6_pcb.c
--- a/sys/netinet6/in6_pcb.c    Fri Dec 22 07:37:27 2017 +0000
+++ b/sys/netinet6/in6_pcb.c    Fri Dec 22 09:53:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_pcb.c,v 1.162 2017/12/15 04:03:46 ozaki-r Exp $    */
+/*     $NetBSD: in6_pcb.c,v 1.163 2017/12/22 09:53:06 ozaki-r Exp $    */
 /*     $KAME: in6_pcb.c,v 1.84 2001/02/08 18:02:08 itojun Exp $        */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.162 2017/12/15 04:03:46 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.163 2017/12/22 09:53:06 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -512,6 +512,7 @@
                if (ia4 == NULL) {
                        if (error == 0)
                                error = EADDRNOTAVAIL;
+                       curlwp_bindx(bound);
                        return (error);
                }
                memset(&mapped, 0, sizeof(mapped));
@@ -521,6 +522,7 @@
                ia4_release(ia4, &_psref);
                in6a = &mapped;
 #else
+               curlwp_bindx(bound);
                return EADDRNOTAVAIL;
 #endif
        } else {



Home | Main Index | Thread Index | Old Index