emsure RsproPDU_t client and bank are not NULL
Change-Id: I3ba6cf466e3002911842edff0884b38fee09ba26
diff --git a/src/rspro_util.c b/src/rspro_util.c
index 002bd81..0562da9 100644
--- a/src/rspro_util.c
+++ b/src/rspro_util.c
@@ -182,7 +182,9 @@
if (!pdu)
return NULL;
pdu->msg.present = RsproPDUchoice_PR_tpduModemToCard;
+ OSMO_ASSERT(client);
pdu->msg.choice.tpduModemToCard.fromClientSlot = *client;
+ OSMO_ASSERT(bank);
pdu->msg.choice.tpduModemToCard.toBankSlot = *bank;
/* TODO: flags? */
OCTET_STRING_fromBuf(&pdu->msg.choice.tpduModemToCard.data, (const char *)tpdu, tpdu_len);
@@ -197,7 +199,9 @@
if (!pdu)
return NULL;
pdu->msg.present = RsproPDUchoice_PR_tpduCardToModem;
+ OSMO_ASSERT(bank);
pdu->msg.choice.tpduCardToModem.fromBankSlot = *bank;
+ OSMO_ASSERT(client)
pdu->msg.choice.tpduCardToModem.toClientSlot = *client;
/* TODO: flags? */
OCTET_STRING_fromBuf(&pdu->msg.choice.tpduCardToModem.data, (const char *)tpdu, tpdu_len);