diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-02 22:29:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-02 22:29:12 +0100 |
commit | 08ca3765b72c89659a03f00c69c9af96ea1c548c (patch) | |
tree | b898cae4a7d54a4a941a599cf19287b8d683049a /src/lib | |
parent | fd283b002cae7cde31e12206a5456ea289adcc65 (diff) | |
download | libmicrohttpd-08ca3765b72c89659a03f00c69c9af96ea1c548c.tar.gz libmicrohttpd-08ca3765b72c89659a03f00c69c9af96ea1c548c.zip |
use curi instead of uri to avoid passing NULL to memchr, even with len 0
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/connection_call_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/connection_call_handlers.c b/src/lib/connection_call_handlers.c index 9e67216c..f8ea0e4d 100644 --- 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, | |||
1804 | url_end = http_version - uri; | 1804 | url_end = http_version - uri; |
1805 | } | 1805 | } |
1806 | if ( (MHD_PSL_STRICT == daemon->protocol_strict_level) && | 1806 | if ( (MHD_PSL_STRICT == daemon->protocol_strict_level) && |
1807 | (NULL != memchr (uri, | 1807 | (NULL != memchr (curi, |
1808 | ' ', | 1808 | ' ', |
1809 | url_end)) ) | 1809 | url_end)) ) |
1810 | { | 1810 | { |