CC: Be sure to allocate call instance with talloc_zero()
This commit is contained in:
parent
b862cef60d
commit
c5e0851054
|
@ -108,7 +108,7 @@ static int mncc_setup_ind(struct gsm_call *call, int msg_type,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create remote call */
|
/* create remote call */
|
||||||
if (!(remote = talloc(tall_call_ctx, struct gsm_call))) {
|
if (!(remote = talloc_zero(tall_call_ctx, struct gsm_call))) {
|
||||||
mncc_set_cause(&mncc, GSM48_CAUSE_LOC_PRN_S_LU,
|
mncc_set_cause(&mncc, GSM48_CAUSE_LOC_PRN_S_LU,
|
||||||
GSM48_CC_CAUSE_RESOURCE_UNAVAIL);
|
GSM48_CC_CAUSE_RESOURCE_UNAVAIL);
|
||||||
goto out_reject;
|
goto out_reject;
|
||||||
|
|
Loading…
Reference in New Issue