From ca97505a7292286d05f23080fd0acfe8b7cebd89 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 8 Dec 2019 00:28:21 -0500 Subject: [multiple] store srv->tmp_buf in tb var rather than using srv->tmp_buf directly in code modifying temp buf (tb) --- src/mod_redirect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mod_redirect.c') diff --git a/src/mod_redirect.c b/src/mod_redirect.c index ee325544..459323c9 100644 --- a/src/mod_redirect.c +++ b/src/mod_redirect.c @@ -78,11 +78,12 @@ static pcre_keyvalue_buffer * mod_redirect_parse_list(server *srv, const array * pcre_keyvalue_buffer * const redirect = pcre_keyvalue_buffer_init(); redirect->x0 = (unsigned short)condidx; log_error_st * const errh = srv->errh; + buffer * const tb = srv->tmp_buf; for (uint32_t j = 0; j < a->used; ++j) { data_string *ds = (data_string *)a->data[j]; if (srv->srvconf.http_url_normalize) { - pcre_keyvalue_burl_normalize_key(&ds->key, srv->tmp_buf); - pcre_keyvalue_burl_normalize_value(&ds->value, srv->tmp_buf); + pcre_keyvalue_burl_normalize_key(&ds->key, tb); + pcre_keyvalue_burl_normalize_value(&ds->value, tb); } if (!pcre_keyvalue_buffer_append(errh, redirect, &ds->key, &ds->value)){ log_error(errh, __FILE__, __LINE__, -- cgit v1.2.1