mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #10514 from akallabeth/double-free
[channels,rail] fix use after free
This commit is contained in:
commit
d6b7e90d69
|
@ -219,13 +219,7 @@ static UINT rail_send_client_sysparam(RailClientContext* context, RAIL_SYSPARAM_
|
|||
return error;
|
||||
}
|
||||
|
||||
if ((error = rail_send_pdu(rail, s, TS_RAIL_ORDER_SYSPARAM)))
|
||||
{
|
||||
WLog_ERR(TAG, "rail_send_pdu failed with error %" PRIu32 "!", error);
|
||||
}
|
||||
|
||||
Stream_Free(s, TRUE);
|
||||
return error;
|
||||
return rail_send_pdu(rail, s, TS_RAIL_ORDER_SYSPARAM);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue