From: Evan Hunt Date: Sun, 10 Jun 2018 05:29:31 +0000 (-0700) Subject: use strtok() instead of strtok_r() in command line processing X-Git-Tag: v9.9.13rc1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=212ed88323d85230ee4861022848f5db30e6b809;p=thirdparty%2Fbind9.git use strtok() instead of strtok_r() in command line processing (cherry picked from commit 1734f1b3b9a30418d316dcf7b03328e49862daf3) --- diff --git a/bin/named/main.c b/bin/named/main.c index 6675fa4fe7a..5b213914ab5 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -466,7 +466,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"); } @@ -476,7 +476,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); @@ -487,7 +487,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;