Read byte by byte, the alignment may otherwise be broken.
authorArmin Novak <armin.novak@thincast.com>
Fri, 19 Oct 2018 10:52:14 +0000 (12:52 +0200)
committerArmin Novak <armin.novak@thincast.com>
Fri, 19 Oct 2018 10:52:14 +0000 (12:52 +0200)
libfreerdp/core/gateway/http.c

index e862d35..ee17858 100644 (file)
@@ -747,7 +747,7 @@ HttpResponse* http_response_recv(rdpTls* tls)
                size_t s;
                char* end;
                /* Read until we encounter \r\n\r\n */
-               int status = BIO_read(tls->bio, Stream_Pointer(response->data), 4);
+               int status = BIO_read(tls->bio, Stream_Pointer(response->data), 1);
 
                if (status <= 0)
                {