rspro_gen_ConnectClientReq(): don't dereference optional 'client'

Change-Id: Id5ff7f1524bc34576095d6812935557c7f03b545
This commit is contained in:
Harald Welte 2018-10-14 20:38:34 +02:00
parent 098ef8780c
commit c3632a778f
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ RsproPDU_t *rspro_gen_ConnectClientReq(const struct app_comp_id *a_cid, const Cl
return NULL;
pdu->msg.present = RsproPDUchoice_PR_connectClientReq;
fill_comp_id(&pdu->msg.choice.connectClientReq.identity, a_cid);
ASN_ALLOC_COPY(pdu->msg.choice.connectClientReq.clientSlot, client);
if (client)
ASN_ALLOC_COPY(pdu->msg.choice.connectClientReq.clientSlot, client);
return pdu;
}