From: Mark Andrews Date: Thu, 24 Jan 2002 21:59:51 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.2.0^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f64f89606f97665328247155e0a08e305f9dfb34;p=thirdparty%2Fbind9.git pullup: nsupdate should not take octal and hex TTLs --- diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 8e4232419c1..7050abfd1fd 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.103.2.7 2002/01/24 18:32:25 gson Exp $ */ +/* $Id: nsupdate.c,v 1.103.2.8 2002/01/24 21:59:51 marka Exp $ */ #include @@ -1147,7 +1147,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;