Read byte by byte, the alignment may otherwise be broken.

This commit is contained in:
Armin Novak 2018-10-19 12:52:14 +02:00
parent 5a747b118d
commit b9933e7af4

View 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)
{