[core,gateway] add NULL checks in send function

This commit is contained in:
akallabeth 2024-07-16 15:45:12 +02:00
parent 1033471a31
commit 3cd3f9a126
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -987,6 +987,9 @@ int rpc_in_channel_send_pdu(RpcInChannel* inChannel, const BYTE* buffer, size_t
return -1; return -1;
clientCall = rpc_client_call_find_by_id(inChannel->common.client, header.call_id); clientCall = rpc_client_call_find_by_id(inChannel->common.client, header.call_id);
if (!clientCall)
return -1;
clientCall->State = RPC_CLIENT_CALL_STATE_DISPATCHED; clientCall->State = RPC_CLIENT_CALL_STATE_DISPATCHED;
/* /*