libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 08ca3765b72c89659a03f00c69c9af96ea1c548c
parent fd283b002cae7cde31e12206a5456ea289adcc65
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  2 Mar 2018 22:29:12 +0100

use curi instead of uri to avoid passing NULL to memchr, even with len 0

Diffstat:
Msrc/lib/connection_call_handlers.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/connection_call_handlers.c b/src/lib/connection_call_handlers.c @@ -1804,7 +1804,7 @@ parse_initial_message_line (struct MHD_Request *request, url_end = http_version - uri; } if ( (MHD_PSL_STRICT == daemon->protocol_strict_level) && - (NULL != memchr (uri, + (NULL != memchr (curi, ' ', url_end)) ) {