Module Name:    src
Committed By:   pooka
Date:           Fri Jan  3 12:50:00 UTC 2014

Modified Files:
        src/sys/net: if.c

Log Message:
missed one inet6 check


To generate a diff of this commit:
cvs rdiff -u -r1.270 -r1.271 src/sys/net/if.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/if.c
diff -u src/sys/net/if.c:1.270 src/sys/net/if.c:1.271
--- src/sys/net/if.c:1.270	Thu Jan  2 18:29:01 2014
+++ src/sys/net/if.c	Fri Jan  3 12:49:59 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: if.c,v 1.270 2014/01/02 18:29:01 pooka Exp $	*/
+/*	$NetBSD: if.c,v 1.271 2014/01/03 12:49:59 pooka Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.270 2014/01/02 18:29:01 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.271 2014/01/03 12:49:59 pooka Exp $");
 
 #include "opt_inet.h"
 
@@ -1685,7 +1685,8 @@ ifioctl_common(struct ifnet *ifp, u_long
 		 * If the link MTU changed, do network layer specific procedure.
 		 */
 #ifdef INET6
-		nd6_setmtu(ifp);
+		if (in6_present)
+			nd6_setmtu(ifp);
 #endif
 		return ENETRESET;
 	default:

Reply via email to