[channels,rail] fix use after free

This commit is contained in:
Armin Novak 2024-08-27 09:08:04 +02:00
parent f928f9465b
commit 7aae7896ae
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105

View File

@ -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);
}
/**