mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
[core,gateway] fix http_request_write
ensure the stream is big enough to hold the data
This commit is contained in:
committed by
Martin Fleisz
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:
|
||||
|
||||
Reference in New Issue
Block a user