diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-23 22:23:17 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-07-25 15:19:50 +0000 |
commit | 67933a19d67a30bfbf40a1a0cfb703505f7b8b40 (patch) | |
tree | 3c8825ce8fcc24b597ab1a08c49392aa9be9c47b /openbsc/src/gprs/sgsn_libgtp.c | |
parent | 7c989e7ced2c2b9949d18db17b6caaa9b317c1ba (diff) |
fix: create_pdp_conf(): unset reject_cause after unknown ran_type
f9f4387686584d4575b326ac7414138d8ba0c641 introduced a check for ran_type,
which potentially leaves reject_cause unset. Fix that.
Change-Id: I0220841ff796f949d00a1415d46b54a3eacc9493
Diffstat (limited to 'openbsc/src/gprs/sgsn_libgtp.c')
-rw-r--r-- | openbsc/src/gprs/sgsn_libgtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index d138500d6..be7637a85 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -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 |