diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-12-08 00:28:21 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 19:54:28 -0400 |
commit | ca97505a7292286d05f23080fd0acfe8b7cebd89 (patch) | |
tree | 072eae5d3f94b9713e61f15f7d552d864cdca59a /src/mod_redirect.c | |
parent | 3e8cdb2e543e5976396c7e0e7bd429a116c32313 (diff) | |
download | lighttpd-git-ca97505a7292286d05f23080fd0acfe8b7cebd89.tar.gz |
[multiple] store srv->tmp_buf in tb var
rather than using srv->tmp_buf directly in code modifying temp buf (tb)
Diffstat (limited to 'src/mod_redirect.c')
-rw-r--r-- | src/mod_redirect.c | 5 |
1 files changed, 3 insertions, 2 deletions
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__, |