]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use strtok() instead of strtok_r() in command line processing
authorEvan Hunt <each@isc.org>
Sun, 10 Jun 2018 05:29:31 +0000 (22:29 -0700)
committerEvan Hunt <each@isc.org>
Sun, 10 Jun 2018 05:37:05 +0000 (22:37 -0700)
(cherry picked from commit 1734f1b3b9a30418d316dcf7b03328e49862daf3)

bin/named/main.c

index bc2be3b8af526ec94fe907479ee5e639fd8837df..19ae57e2d7f601a92c7baa9021cfe1c9a3477950 100644 (file)
@@ -476,7 +476,7 @@ parse_T_opt(char *option) {
        } else if (!strncmp(option, "maxudp=", 7)) {
                maxudp = atoi(option + 7);
        } else if (!strncmp(option, "mkeytimers=", 11)) {
-               p = strtok_r(option + 11, "/", &last);
+               p = strtok(option + 11, "/", &last);
                if (p == NULL) {
                        ns_main_earlyfatal("bad mkeytimer");
                }
@@ -486,7 +486,7 @@ parse_T_opt(char *option) {
                        ns_main_earlyfatal("bad mkeytimer");
                }
 
-               p = strtok_r(NULL, "/", &last);
+               p = strtok(NULL, "/", &last);
                if (p == NULL) {
                        dns_zone_mkey_day = (24 * dns_zone_mkey_hour);
                        dns_zone_mkey_month = (30 * dns_zone_mkey_day);
@@ -497,7 +497,7 @@ parse_T_opt(char *option) {
                if (dns_zone_mkey_day < dns_zone_mkey_hour)
                        ns_main_earlyfatal("bad mkeytimer");
 
-               p = strtok_r(NULL, "/", &last);
+               p = strtok(NULL, "/", &last);
                if (p == NULL) {
                        dns_zone_mkey_month = (30 * dns_zone_mkey_day);
                        return;