Commit bda7da77 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

httpd: fix inverted logic (fixes #18812)

parent 0be0be63
......@@ -1510,7 +1510,7 @@ static void httpd_ClientRecv(httpd_client_t *cl)
/* TODO Mhh, handle the case where the client only
* sends a request and closes the connection to
* mark the end of the body (probably only RTSP) */
if (cl->query.i_body >= 65536)
if (cl->query.i_body < 65536)
cl->query.p_body = malloc(cl->query.i_body);
else
cl->query.p_body = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment