526. [bug] nsupdate incorrectly refused to add RRs with a TTL
of 0.
+ 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
* 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>
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) ==