mirror of https://github.com/FreeRDP/FreeRDP
[core,gateway] fix http_request_write
ensure the stream is big enough to hold the data
This commit is contained in:
parent
767818e97e
commit
14fd94a38c
|
@ -519,7 +519,9 @@ wStream* http_request_write(HttpContext* context, HttpRequest* request)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
Stream_Write(s, "\r\n", 2);
|
||||
if (!http_encode_print(s, "\r\n"))
|
||||
goto fail;
|
||||
|
||||
Stream_SealLength(s);
|
||||
return s;
|
||||
fail:
|
||||
|
|
Loading…
Reference in New Issue