diff --git a/src/proto_http.c b/src/proto_http.c index 17beb0c5d..5b1ff9f9d 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -674,6 +674,7 @@ void perform_http_redirect(struct session *s, struct stream_interface *si) /* 1: create the response header */ rdr.len = strlen(HTTP_302); rdr.str = trash; + rdr.size = sizeof(trash); memcpy(rdr.str, HTTP_302, rdr.len); /* 2: add the server's prefix */