From 6e3a8e17fdf108f47bbba17474fd3d120d356b2f Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 1 Sep 2000 22:14:32 +0000 Subject: [PATCH] The "exit" command was not implemented. --- bin/dig/nslookup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 57eca087d4..d2a6581aa5 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nslookup.c,v 1.37 2000/09/01 21:54:23 bwelling Exp $ */ +/* $Id: nslookup.c,v 1.38 2000/09/01 22:14:32 bwelling Exp $ */ #include @@ -752,6 +752,9 @@ get_next_command(void) { (strcasecmp(ptr, "lserver") == 0)) { printf("Server:\t%s\n", arg); setsrv(arg); + } else if (strcasecmp(ptr, "exit") == 0) { + in_use = ISC_FALSE; + return; } else addlookup(ptr); }