=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dig/nslookup.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/dig/nslookup.c 2020/02/25 17:01:56 1.9 +++ src/usr.bin/dig/nslookup.c 2020/04/28 15:55:55 1.10 @@ -719,10 +719,12 @@ if (ptr == NULL) return; arg = next_token(&input, " \t\r\n"); - if ((strcasecmp(ptr, "set") == 0) && - (arg != NULL)) - setoption(arg); - else if ((strcasecmp(ptr, "server") == 0) || + if (strcasecmp(ptr, "set") == 0) { + if (arg == NULL) + printf("Usage: set keyword=value, or set all\n"); + else + setoption(arg); + } else if ((strcasecmp(ptr, "server") == 0) || (strcasecmp(ptr, "lserver") == 0)) { isc_result_t res;