2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

nsupdate should not take octal and hex TTLs

This commit is contained in:
Andreas Gustafsson
2001-11-22 00:59:18 +00:00
parent 38ba66e41b
commit 27f9274cb4

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 <config.h> #include <config.h>
@@ -1104,7 +1104,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
goto doneparsing; goto doneparsing;
} }
} }
ttl = strtoul(word, &endp, 0); ttl = strtoul(word, &endp, 10);
if (!isdigit((unsigned char)*word) || *endp != '\0') { if (!isdigit((unsigned char)*word) || *endp != '\0') {
if (isdelete) { if (isdelete) {
ttl = 0; ttl = 0;