From: Mark Andrews Date: Sun, 30 Jun 2013 11:46:19 +0000 (+1000) Subject: check if target == NULL X-Git-Tag: v9.10.0a1~251 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ea899f501bdb17e3f5e4321805f8e0ca418bdcab;p=thirdparty%2Fbind9.git check if target == NULL --- diff --git a/bin/named/server.c b/bin/named/server.c index fb1e22f142e..bfbaea0a6e8 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -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");