]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check if target == NULL
authorMark Andrews <marka@isc.org>
Sun, 30 Jun 2013 11:46:19 +0000 (21:46 +1000)
committerMark Andrews <marka@isc.org>
Sun, 30 Jun 2013 11:46:19 +0000 (21:46 +1000)
bin/named/server.c

index fb1e22f142e024d61005a0383908d0be4095a506..bfbaea0a6e88c49d906a204e3ab36c17c7737034 100644 (file)
@@ -7629,6 +7629,9 @@ ns_server_flushnode(ns_server_t *server, char *args, isc_boolean_t tree) {
                return (ISC_R_UNEXPECTEDEND);
 
        target = next_token(&args, " \t");
+       if (target == NULL)
+               return (ISC_R_UNEXPECTEDEND);
+
        if (strcmp(target, "-all") == 0) {
                all = ISC_TRUE;
                target = next_token(&args, " \t");