From 27f9274cb46f85cd8f23ec6fe67f84713bfdacad Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 22 Nov 2001 00:59:18 +0000 Subject: [PATCH] nsupdate should not take octal and hex TTLs --- bin/nsupdate/nsupdate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 05a969f1be..4bb8d8c7c3 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.113 2001/11/14 22:08:32 bwelling Exp $ */ +/* $Id: nsupdate.c,v 1.114 2001/11/22 00:59:18 gson Exp $ */ #include @@ -1104,7 +1104,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) { goto doneparsing; } } - ttl = strtoul(word, &endp, 0); + ttl = strtoul(word, &endp, 10); if (!isdigit((unsigned char)*word) || *endp != '\0') { if (isdelete) { ttl = 0;