silent_call: check return value of trans_alloc() against NULL
We're checking the result of trans_alloc() 6 out of 7 times, so check it in gsm_silent_call_start() too, for the sake of consistency. Change-Id: Ie989cd8146d66d9531cf3f3d84f46a2c6fcc2e5c Fixes: CID#322140
This commit is contained in:
parent
c9801ed14a
commit
2984d13e03
|
@ -140,7 +140,11 @@ int gsm_silent_call_start(struct vlr_subscr *vsub,
|
|||
struct vty *vty)
|
||||
{
|
||||
struct gsm_network *net = vsub->vlr->user_ctx;
|
||||
struct gsm_trans *trans = trans_alloc(net, vsub, TRANS_SILENT_CALL, 0, 0);
|
||||
struct gsm_trans *trans;
|
||||
|
||||
trans = trans_alloc(net, vsub, TRANS_SILENT_CALL, 0, 0);
|
||||
if (trans == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
trans->silent_call.ct = *ct;
|
||||
if (traffic_dst_ip) {
|
||||
|
|
Loading…
Reference in New Issue