[vlc-devel] httpd.c "bug"

boing boing.boing at free.fr
Mon Sep 22 21:32:15 CEST 2008


Hello,

just to report a small "bug" I found in the httpd code, already
discribed here
http://forum.videolan.org/viewtopic.php?f=18&t=47295#p159284

git-diff
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 06bd9dc..c830904 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2351,8 +2351,8 @@ retry:
     }
     if( ( ( cl->query.i_proto == HTTPD_PROTO_HTTP ) &&
-        ( ( cl->answer.i_version == 0 && b_keepalive ) ||
-          ( cl->answer.i_version == 1 && !b_connection ) ) ) ||
+        ( ( cl->query.i_version == 0 && b_keepalive ) ||
+          ( cl->query.i_version == 1 && !b_connection ) ) ) ||
         ( ( cl->query.i_proto == HTTPD_PROTO_RTSP ) &&
                !b_query && !b_connection ) )
     {







More information about the vlc-devel mailing list