]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorBrian Wellington <source@isc.org>
Mon, 11 Jun 2001 18:25:41 +0000 (18:25 +0000)
committerBrian Wellington <source@isc.org>
Mon, 11 Jun 2001 18:25:41 +0000 (18:25 +0000)
 898.   [bug]           "dig" failed to set a nonzero exit status
                         on UDP query timeout. [RT #1323]

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index cf76b132645dde75cc04d1d19b8919a1a61e4733..d762f655bee692bd2baafe41ae88c0e1f58103a7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+ 898.  [bug]           "dig" failed to set a nonzero exit status
+                       on UDP query timeout. [RT #1323]
 
  894.  [bug]           When using the DNSSEC tools, a message intended to warn
                        when the keyboard was being used because of the lack
index f71b045e45d2627253097e568a1f3edadc9a921b..e4e30583bf2861040e11a3ec6b02030cc706656c 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.174.2.8 2001/04/26 18:20:47 gson Exp $ */
+/* $Id: dighost.c,v 1.174.2.9 2001/06/11 18:25:41 bwelling Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -1867,6 +1867,8 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
                fputs(l->cmdline, stdout);
                printf(";; connection timed out; no servers could be "
                       "reached\n");
+               if (exitcode < 9)
+                       exitcode = 9;
                cancel_lookup(l);
        }
        UNLOCK_LOOKUP;