aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-04 21:55:23 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-04 21:55:23 +0200
commit2d956a82c8fd3f54fe58ce5a7b597be51c25960b (patch)
tree74e57840d4361a43563902d7a4e6e9ebc9631464
parentc5f055f9e5aa58548b484345bd3bdc914e640d6c (diff)
bssgp: check for IMSI being a null pointer, not just an empty string.
-rw-r--r--src/gb/gprs_bssgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c
index 4b8c7302..83588197 100644
--- a/src/gb/gprs_bssgp.c
+++ b/src/gb/gprs_bssgp.c
@@ -811,7 +811,7 @@ int bssgp_tx_dl_ud(struct msgb *msg, uint16_t pdu_lifetime,
}
/* IMSI */
- if (strlen(dup->imsi)) {
+ if (dup->imsi && strlen(dup->imsi)) {
uint8_t mi[10];
int imsi_len = gsm48_generate_mid_from_imsi(mi, dup->imsi);
if (imsi_len > 2)