Read byte by byte, the alignment may otherwise be broken.
This commit is contained in:
parent
5a747b118d
commit
b9933e7af4
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user