]> 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:36:46 +0000 (22:36 -0700)
(cherry picked from commit 1734f1b3b9a30418d316dcf7b03328e49862daf3)

bin/named/main.c

index eb308d44ca9e73799c8078e36d662910788e806a..0e087734ee9a3abbb53f6b103d6c10134d7a6d57 100644 (file)
@@ -501,7 +501,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");
                }
@@ -511,7 +511,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);
@@ -522,7 +522,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;