From b1cde6bf3a8e3a77eb77caf97df0d7ec5c8450df Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 19 Oct 2000 16:31:05 +0000 Subject: [PATCH] 526. [bug] nsupdate incorrectly refused to add RRs with a TTL of 0. --- CHANGES | 3 +++ bin/nsupdate/nsupdate.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 89949d21e9..68e8ee7ac0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ + 526. [bug] nsupdate incorrectly refused to add RRs with a TTL + of 0. + 525. [func] New arguement 'exact' for dns_db_subtractrdataset(), and dns_rdataslab_subtract() requesting that the RR's must exist prior to deletion. DNS_R_NOTEXACT is diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index e07b2782a4..ee6f59c240 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.55 2000/10/06 18:58:30 bwelling Exp $ */ +/* $Id: nsupdate.c,v 1.56 2000/10/19 16:31:05 bwelling Exp $ */ #include @@ -873,7 +873,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) ==