]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove dead code
authorMark Andrews <marka@isc.org>
Mon, 19 Nov 2018 20:52:08 +0000 (07:52 +1100)
committerMark Andrews <marka@isc.org>
Thu, 22 Nov 2018 22:04:00 +0000 (17:04 -0500)
bin/named/server.c

index 75104226a01f83eb9d0851421f2cc96811d78c4b..3bf7108ffb1001f435189cf775828015354b688a 100644 (file)
@@ -14416,7 +14416,6 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
        bool ttlset = false, excl = false, viewfound = false;
        dns_rdataclass_t rdclass = dns_rdataclass_in;
        bool first = true;
-       bool is_option = true;
 
        UNUSED(force);
 
@@ -14436,10 +14435,8 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
                        return (ISC_R_UNEXPECTEDEND);
                }
 
-               if (!is_option) {
-                       nametext = ptr;
-               } else if (strcmp(ptr, "--") == 0) {
-                       is_option = false;
+               if (strcmp(ptr, "--") == 0) {
+                       break;
                } else if (argcheck(ptr, "dump")) {
                        dump = true;
                } else if (argcheck(ptr, "remove")) {
@@ -14526,7 +14523,7 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
                CHECK(ISC_R_FAILURE);
        }
 
-       /* Get the NTA name. */
+       /* Get the NTA name if not found above. */
        if (nametext == NULL) {
                nametext = next_token(lex, text);
        }