mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
mod_proxy_http2: reserve NUL when rewriting a backend Link header uri
Submitted by: arshiya tabasum <arshi@bugqore.com> Github: closes #711 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -976,7 +976,7 @@ static void map_link(link_ctx *ctx)
|
||||
* to work, we need to use the proxy uri */
|
||||
int path_start = ctx->link_start + ctx->rbu_len;
|
||||
link_len -= ctx->rbu_len;
|
||||
need_len = ctx->psu_len + link_len;
|
||||
need_len = ctx->psu_len + link_len + 1;
|
||||
if (need_len > sizeof(buffer))
|
||||
goto out;
|
||||
memcpy(buffer, ctx->p_server_uri, ctx->psu_len);
|
||||
|
||||
Reference in New Issue
Block a user