cc trans: make sure bearer cap is empty

Change-Id: I147f10f9258fc8685f2f666878dd2a655b8e4583
This commit is contained in:
Neels Hofmeyr 2019-08-28 03:42:03 +02:00
parent 61ae18c956
commit 85031ee0aa
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ struct gsm_trans *trans_alloc(struct gsm_network *net,
.transaction_id = trans_id,
.callref = callref,
.net = net,
/* empty bearer_cap: make sure the speech_ver array is empty */
.bearer_cap = {
.speech_ver = { -1 },
},
};
vlr_subscr_get(vsub, trans_vsub_use(type));
llist_add_tail(&trans->entry, &net->trans_list);