Module Name:    src
Committed By:   christos
Date:           Thu Jan 24 19:55:28 UTC 2013

Modified Files:
        src/usr.sbin/rtadvd: config.c

Log Message:
fix previous.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/rtadvd/config.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/rtadvd/config.c
diff -u src/usr.sbin/rtadvd/config.c:1.32 src/usr.sbin/rtadvd/config.c:1.33
--- src/usr.sbin/rtadvd/config.c:1.32	Thu Jan 24 12:44:59 2013
+++ src/usr.sbin/rtadvd/config.c	Thu Jan 24 14:55:28 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: config.c,v 1.32 2013/01/24 17:44:59 christos Exp $	*/
+/*	$NetBSD: config.c,v 1.33 2013/01/24 19:55:28 christos Exp $	*/
 /*	$KAME: config.c,v 1.93 2005/10/17 14:40:02 suz Exp $	*/
 
 /*
@@ -1308,11 +1308,10 @@ make_packet(struct rainfo *rainfo)
 static int
 getinet6sysctl(int code)
 {
-	static const int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, 0 };
+	const int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, code };
 	int value;
 	size_t size;
 
-	mib[3] = code;
 	size = sizeof(value);
 	if (sysctl(mib, __arraycount(mib), &value, &size, NULL, 0)
 	    < 0) {

Reply via email to