diff options
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_patch.c | 5 | ||||
-rw-r--r-- | openbsc/src/gprs/gb_proxy_tlli.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gb_proxy_patch.c b/openbsc/src/gprs/gb_proxy_patch.c index 35355ba0d..32e844eca 100644 --- a/openbsc/src/gprs/gb_proxy_patch.c +++ b/openbsc/src/gprs/gb_proxy_patch.c @@ -335,7 +335,10 @@ void gbproxy_patch_bssgp(struct msgb *msg, uint8_t *bssgp, size_t bssgp_len, goto patch_error; } - if (parse_ctx->tlli_enc && tlli_info) { + if (!tlli_info) + return; + + if (parse_ctx->tlli_enc) { uint32_t tlli = gbproxy_map_tlli(parse_ctx->tlli, tlli_info, parse_ctx->to_bss); diff --git a/openbsc/src/gprs/gb_proxy_tlli.c b/openbsc/src/gprs/gb_proxy_tlli.c index f554db1f4..91469b03f 100644 --- a/openbsc/src/gprs/gb_proxy_tlli.c +++ b/openbsc/src/gprs/gb_proxy_tlli.c @@ -309,7 +309,7 @@ struct gbproxy_tlli_info *gbproxy_register_tlli( { struct gbproxy_tlli_info *tlli_info; int enable_patching = -1; - int tlli_already_known; + int tlli_already_known = 0; /* Check, whether the IMSI matches */ if (gprs_is_mi_imsi(imsi, imsi_len)) { |