From: Fabian Keil Date: Sun, 7 Jun 2020 15:57:40 +0000 (+0200) Subject: parse_header_time(): Use privoxy_gmtime_r() X-Git-Tag: v_3_0_29~289 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=9f44e21fd93b26cbce9a0c71d85a17b97fd489e3;ds=sidebyside parse_header_time(): Use privoxy_gmtime_r() Previously the function would use gmtime() unlocked if FEATURE_STRPTIME_SANITY_CHECKS was enabled ... --- diff --git a/parsers.c b/parsers.c index 6b93b747..15abc409 100644 --- a/parsers.c +++ b/parsers.c @@ -4356,9 +4356,10 @@ static jb_err parse_header_time(const char *header_time, time_t *result) { char recreated_date[100]; struct tm *tm; + struct tm storage; time_t result2; - tm = gmtime(result); + tm = privoxy_gmtime_r(result, &storage); if (!strftime(recreated_date, sizeof(recreated_date), time_formats[i], tm)) {