From: Roy Marples Date: Thu, 15 May 2014 12:02:03 +0000 (+0000) Subject: Only send interfaces which have a reason. X-Git-Tag: v6.4.0~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be6184ce7295e6dfcacde352d2d14f3a9c81e504;p=thirdparty%2Fdhcpcd.git Only send interfaces which have a reason. --- diff --git a/script.c b/script.c index cad6ed07..bbc9006a 100644 --- a/script.c +++ b/script.c @@ -551,7 +551,7 @@ send_interface(int fd, const struct interface *ifp) if (send_interface1(fd, ifp, reason) == -1) retval = -1; #ifdef INET - if (d) + if (d && d->reason) if (send_interface1(fd, ifp, d->reason) == -1) retval = -1; #endif @@ -561,7 +561,7 @@ send_interface(int fd, const struct interface *ifp) if (send_interface1(fd, ifp, "ROUTERADVERT") == -1) retval = -1; } - if (D6_STATE_RUNNING(ifp)) { + if (D6_STATE_RUNNING(ifp) && d6->reason) { if (send_interface1(fd, ifp, d6->reason) == -1) retval = -1; }