fix: create_pdp_conf(): unset reject_cause after unknown ran_type
f9f4387686
introduced a check for ran_type,
which potentially leaves reject_cause unset. Fix that.
Change-Id: I0220841ff796f949d00a1415d46b54a3eacc9493
This commit is contained in:
parent
7c989e7ced
commit
67933a19d6
|
@ -358,6 +358,10 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
|
|||
return send_act_pdp_cont_acc(pctx);
|
||||
}
|
||||
|
||||
LOGP(DGPRS, LOGL_ERROR, "Unknown ran_type %d\n",
|
||||
pctx->mm->ran_type);
|
||||
reject_cause = GSM_CAUSE_PROTO_ERR_UNSPEC;
|
||||
|
||||
reject:
|
||||
/*
|
||||
* In case of a timeout pdp will be NULL but we have a valid pointer
|
||||
|
|
Loading…
Reference in New Issue