]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't stop control in test
authorRoy Marples <roy@marples.name>
Wed, 25 Nov 2020 14:55:25 +0000 (14:55 +0000)
committerRoy Marples <roy@marples.name>
Wed, 25 Nov 2020 14:55:25 +0000 (14:55 +0000)
src/dhcpcd.c

index 7727a48e6e60d3664dea960513011e28bcb68ad1..306d1d00f0a20df6ac8d0ea1476c7fadda86cb56 100644 (file)
@@ -2540,7 +2540,7 @@ exit_failure:
        i = EXIT_FAILURE;
 
 exit1:
-       if (control_stop(&ctx) == -1)
+       if (!(ctx.options & DHCPCD_TEST) && control_stop(&ctx) == -1)
                logerr("%s: control_stop", __func__);
        if (ifaddrs != NULL) {
 #ifdef PRIVSEP_GETIFADDRS