Module Name: src Committed By: ozaki-r Date: Tue Mar 14 08:35:55 UTC 2017
Modified Files: src/sys/net: rtsock.c Log Message: Fix use of curlwp_bind There was an error path that returned without curlwp_bindx. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/sys/net/rtsock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/rtsock.c diff -u src/sys/net/rtsock.c:1.205 src/sys/net/rtsock.c:1.206 --- src/sys/net/rtsock.c:1.205 Tue Mar 14 08:11:09 2017 +++ src/sys/net/rtsock.c Tue Mar 14 08:35:55 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.205 2017/03/14 08:11:09 ozaki-r Exp $ */ +/* $NetBSD: rtsock.c,v 1.206 2017/03/14 08:35:55 ozaki-r Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.205 2017/03/14 08:11:09 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.206 2017/03/14 08:35:55 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1638,7 +1638,7 @@ sysctl_iflist(int af, struct rt_walkarg struct rt_addrinfo *); int s; struct psref psref; - int bound = curlwp_bind(); + int bound; switch (type) { case NET_RT_IFLIST: @@ -1676,6 +1676,7 @@ sysctl_iflist(int af, struct rt_walkarg memset(&info, 0, sizeof(info)); + bound = curlwp_bind(); s = pserialize_read_enter(); IFNET_READER_FOREACH(ifp) { int _s;