Merge pull request #3476 from FreeRDP/mh-fix-transport
libfreerdp/core: transport_write unchecked parameters
This commit is contained in:
commit
4c9782d677
@ -657,6 +657,15 @@ int transport_write(rdpTransport* transport, wStream* s)
|
||||
int status = -1;
|
||||
int writtenlength = 0;
|
||||
|
||||
if (!transport)
|
||||
return -1;
|
||||
|
||||
if (!transport->frontBio)
|
||||
{
|
||||
transport->layer = TRANSPORT_LAYER_CLOSED;
|
||||
return -1;
|
||||
}
|
||||
|
||||
EnterCriticalSection(&(transport->WriteLock));
|
||||
|
||||
length = Stream_GetPosition(s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user