]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
options: move warning
authorRoy Marples <roy@marples.name>
Fri, 27 Mar 2020 16:04:10 +0000 (16:04 +0000)
committerRoy Marples <roy@marples.name>
Fri, 27 Mar 2020 16:04:10 +0000 (16:04 +0000)
src/if-options.c

index 46df50ca0f981b0b41862e2a12fa33f27b38a018..7850ff2eef65ed50ed51f7d30dd3cd82ef1b021f 100644 (file)
@@ -2102,15 +2102,14 @@ err_sla:
                }
                parse_string((char *)token->key, token->key_len, arg);
                TAILQ_INSERT_TAIL(&ifo->auth.tokens, token, next);
-#else
-               logerrx("no authentication support");
-               return -1;
-#endif
                break;
 
 invalid_token:
                free(token->realm);
                free(token);
+#else
+               logerrx("no authentication support");
+#endif
                return -1;
        case O_AUTHNOTREQUIRED:
                ifo->auth.options &= ~DHCPCD_AUTH_REQUIRE;