From: Stefan Metzmacher Date: Thu, 20 Jul 2017 16:13:28 +0000 (+0200) Subject: s4:lib/http: lower HTTP_MAX_HEADER_SIZE from UINT_MAX to 0x1FFFF X-Git-Tag: tdb-1.3.15~177 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=7b86da08ea760ac5198a9ca13a349c9536aba1a7;hp=2b67d936c182f32ea46e490b56b3d471450ad1e1 s4:lib/http: lower HTTP_MAX_HEADER_SIZE from UINT_MAX to 0x1FFFF We don't need very large headers, the largest ones are "Authorization" or "WWW-Authenticate", but 128k should be more than enough for all headers. Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source4/lib/http/http.h b/source4/lib/http/http.h index a601a03728b..35fe8a7655b 100644 --- a/source4/lib/http/http.h +++ b/source4/lib/http/http.h @@ -43,7 +43,7 @@ #define HTTP_NOTIMPLEMENTED 501 /* not implemented */ #define HTTP_SERVUNAVAIL 503 /* server is not available */ -#define HTTP_MAX_HEADER_SIZE UINT_MAX +#define HTTP_MAX_HEADER_SIZE 0x1FFFF struct cli_credentials; struct loadparm_ctx;