mirror of https://gerrit.osmocom.org/libosmocore
ASCI: Add missing check for return value of gsm0808_enc_speech_codec_list2()
Fixes: CID#318987 Change-Id: I771b8ee8dfe1588d0af1c4957489f723447a7054
This commit is contained in:
parent
d0be3909b8
commit
209bc38974
|
@ -1756,13 +1756,19 @@ struct msgb *gsm0808_create_vgcs_vbs_assign_fail(const struct gsm0808_vgcs_vbs_a
|
|||
msgb_tlv_put(msg, GSM0808_IE_CIRCUIT_POOL_LIST, params->cpl.list_len, params->cpl.pool);
|
||||
|
||||
/* Codec List (BSS Supported) 3.2.2.103 */
|
||||
if (params->codec_list_present)
|
||||
gsm0808_enc_speech_codec_list2(msg, ¶ms->codec_list_bss_supported);
|
||||
if (params->codec_list_present) {
|
||||
if (gsm0808_enc_speech_codec_list2(msg, ¶ms->codec_list_bss_supported) < 0)
|
||||
goto exit_free;
|
||||
}
|
||||
|
||||
/* prepend header with final length */
|
||||
msg->l3h = msgb_tv_push(msg, BSSAP_MSG_BSS_MANAGEMENT, msgb_length(msg));
|
||||
|
||||
return msg;
|
||||
|
||||
exit_free:
|
||||
msgb_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*! Create BSSMAP VGCS/VBS QUEUING INDICATION message, 3GPP TS 48.008 3.2.1.56.
|
||||
|
|
Loading…
Reference in New Issue