]> 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:29:31 +0000 (22:29 -0700)
bin/named/main.c

index 70322aef99189582253d5b68a583f78ed0c76b0d..7833a76347155fc36efa4a1858b9ee1facbe4a1e 100644 (file)
@@ -513,7 +513,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) {
                        named_main_earlyfatal("bad mkeytimer");
                }
@@ -523,7 +523,7 @@ parse_T_opt(char *option) {
                        named_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);
@@ -534,7 +534,7 @@ parse_T_opt(char *option) {
                if (dns_zone_mkey_day < dns_zone_mkey_hour)
                        named_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;