526. [bug] nsupdate incorrectly refused to add RRs with a TTL

of 0.
This commit is contained in:
Brian Wellington 2000-10-19 16:31:05 +00:00
parent e6bd97dded
commit b1cde6bf3a
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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 <config.h>
@ -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) ==