From: Andreas Gustafsson Date: Thu, 19 Oct 2000 17:13:22 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.0.1rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0aa7b47a92019634546533ca61a952a5647fba;p=thirdparty%2Fbind9.git pullup: 526. [bug] nsupdate incorrectly refused to add RRs with a TTL of 0. --- diff --git a/CHANGES b/CHANGES index 68797c3b731..41c2548dee8 100644 --- 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 diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index a2c69b0c208..e546bda0349 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -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 @@ -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) ==