Skip to content

Commit

Permalink
Fixed missing encomsp check (FreeRDP#8238)
Browse files Browse the repository at this point in the history
The channel might not have been initialized and the pointer NULL
  • Loading branch information
akallabeth authored Sep 22, 2022
1 parent e6573ce commit b18ca12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/common/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,9 @@ BOOL freerdp_client_encomsp_toggle_control(EncomspClientContext* encomsp)
rdpClientContext* cctx;
BOOL state;

WINPR_ASSERT(encomsp);
if (!encomsp)
return FALSE;

cctx = (rdpClientContext*)encomsp->custom;

state = cctx->controlToggle;
Expand Down

0 comments on commit b18ca12

Please sign in to comment.