[vlc-commits] httpd: fix inverted logic (fixes #18812)
Rémi Denis-Courmont
git at videolan.org
Sat Sep 16 00:49:53 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 15 23:19:33 2017 +0300| [bda7da778190e0c5220bac36f3628fb3353720eb] | committer: Rémi Denis-Courmont
httpd: fix inverted logic (fixes #18812)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bda7da778190e0c5220bac36f3628fb3353720eb
---
src/network/httpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 9e911b4d66..902a45748d 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -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;
More information about the vlc-commits
mailing list