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

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index 851a23ac8b243c8ff6d2d3ead97928399d64b774..069f567de1abab7417d50792ddd69ce865794263 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
 
+ 898.  [bug]           "dig" failed to set a nonzero exit status
+                       on UDP query timeout. [RT #1323]
+
  897.  [bug]           A config.guess update changed the system identification
                        string of UnixWare systems; configure now recognizes
                        the new string.
index 14739b55aa07276aa330faabd2f9119471a2818b..b95d3af1a29471408cc81a64bf6c6016937f461b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.201 2001/06/11 18:08:16 gson Exp $ */
+/* $Id: dighost.c,v 1.202 2001/06/11 18:20:43 gson Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -1856,6 +1856,8 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
                printf(";; connection timed out; no servers could be "
                       "reached\n");
                cancel_lookup(l);
+               if (exitcode < 9)
+                       exitcode = 9;
        }
        UNLOCK_LOOKUP;
 }