libmsc: check return value of gsm0808_create_ass2()
Change-Id: I6fd1669f2919034599d99336cf56f25a97afdf7c
This commit is contained in:
parent
634591e85b
commit
8284fb053d
|
@ -1002,6 +1002,12 @@ static struct msgb *ran_a_make_assignment_command(struct osmo_fsm_inst *log_fi,
|
||||||
|
|
||||||
msg = gsm0808_create_ass2(ac->channel_type, NULL, use_rtp_addr, use_scl, call_id,
|
msg = gsm0808_create_ass2(ac->channel_type, NULL, use_rtp_addr, use_scl, call_id,
|
||||||
NULL, ac->lcls);
|
NULL, ac->lcls);
|
||||||
|
if (msg == NULL) {
|
||||||
|
LOG_RAN_A_ENC(log_fi, LOGL_ERROR,
|
||||||
|
"Failed to encode BSSMAP Assignment Request message\n");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ac->osmux_present)
|
if (ac->osmux_present)
|
||||||
_gsm0808_assignment_extend_osmux(msg, ac->osmux_cid);
|
_gsm0808_assignment_extend_osmux(msg, ac->osmux_cid);
|
||||||
return msg;
|
return msg;
|
||||||
|
|
Loading…
Reference in New Issue