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:
Neels Hofmeyr 2016-07-23 22:23:17 +02:00 committed by Neels Hofmeyr
parent 7c989e7ced
commit 67933a19d6
1 changed files with 4 additions and 0 deletions

View File

@ -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