mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 09:54:26 +08:00
[return checks] fix missing checks
* Stream_EnsureRemainingCapacity * rdp_client_transition_to_state
This commit is contained in:
parent
07ea37d1d7
commit
c0d06c782b
@ -2047,7 +2047,7 @@ static state_run_t rdp_recv_callback_int(rdpTransport* transport, wStream* s, vo
|
||||
case CONNECTION_STATE_MULTITRANSPORT_BOOTSTRAPPING_REQUEST:
|
||||
if (!rdp_client_connect_auto_detect(rdp, s))
|
||||
{
|
||||
rdp_client_transition_to_state(
|
||||
(void)rdp_client_transition_to_state(
|
||||
rdp, CONNECTION_STATE_CAPABILITIES_EXCHANGE_DEMAND_ACTIVE);
|
||||
status = STATE_RUN_TRY_AGAIN;
|
||||
}
|
||||
|
@ -1257,8 +1257,8 @@ static BOOL vgids_ins_perform_security_operation(vgidsContext* context, wStream*
|
||||
if (!context->commandData)
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
Stream_EnsureRemainingCapacity(context->commandData, lc);
|
||||
else if (!Stream_EnsureRemainingCapacity(context->commandData, lc))
|
||||
return FALSE;
|
||||
|
||||
Stream_Write(context->commandData, Stream_Pointer(s), lc);
|
||||
Stream_SealLength(context->commandData);
|
||||
|
@ -659,7 +659,8 @@ static DWORD WINAPI tf_debug_channel_thread_func(LPVOID arg)
|
||||
if (BytesReturned == 0)
|
||||
break;
|
||||
|
||||
Stream_EnsureRemainingCapacity(s, BytesReturned);
|
||||
if (!Stream_EnsureRemainingCapacity(s, BytesReturned))
|
||||
break;
|
||||
|
||||
if (WTSVirtualChannelRead(context->debug_channel, 0, (PCHAR)Stream_Buffer(s),
|
||||
(ULONG)Stream_Capacity(s), &BytesReturned) == FALSE)
|
||||
|
Loading…
Reference in New Issue
Block a user