]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorMark Andrews <marka@isc.org>
Thu, 24 Jan 2002 21:59:51 +0000 (21:59 +0000)
committerMark Andrews <marka@isc.org>
Thu, 24 Jan 2002 21:59:51 +0000 (21:59 +0000)
nsupdate should not take octal and hex TTLs

bin/nsupdate/nsupdate.c

index 8e4232419c1aa183c815c1af2b18e25041a8281c..7050abfd1fdb1d19743f6c85911d5996c5b4fa8f 100644 (file)
@@ -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 <config.h>
 
@@ -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;