]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Thu, 19 Oct 2000 17:13:22 +0000 (17:13 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 19 Oct 2000 17:13:22 +0000 (17:13 +0000)
 526.   [bug]           nsupdate incorrectly refused to add RRs with a TTL
                        of 0.

CHANGES
bin/nsupdate/nsupdate.c

diff --git a/CHANGES b/CHANGES
index 68797c3b731301ec374e8fae734c399e864f6dd9..41c2548dee83250c4ed3108b1989e5f4fa410a9e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+ 526.  [bug]           nsupdate incorrectly refused to add RRs with a TTL
+                       of 0.
 
  523.  [doc]           The source to the Administrator Reference Manual is
                        now an XML file using the DocBook DTD, and is included
index a2c69b0c208743d77d236d01b6bdf54f01d527cd..e546bda03499d0f84a5784bd2dde21c36b198e4f 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.8.2.11 2000/10/03 17:43:54 mws Exp $ */
+/* $Id: nsupdate.c,v 1.8.2.12 2000/10/19 17:13:22 gson Exp $ */
 
 #include <config.h>
 
@@ -890,7 +890,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
                if (*endp != '\0') {
                        fprintf(stderr, "ttl '%s' is not numeric\n", word);
                        goto failure;
-               } else if (ttl < 1 || ttl > TTL_MAX || errno == ERANGE) {
+               } else if (ttl < 0 || ttl > TTL_MAX || errno == ERANGE) {
                        /*
                         * The errno test is needed to catch when strtol()
                         * overflows on a platform where sizeof(int) ==