commit | 2d956a82c8fd3f54fe58ce5a7b597be51c25960b | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed Jul 04 21:55:23 2012 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Wed Jul 04 21:55:23 2012 +0200 |
tree | 74e57840d4361a43563902d7a4e6e9ebc9631464 | |
parent | c5f055f9e5aa58548b484345bd3bdc914e640d6c [diff] [blame] |
bssgp: check for IMSI being a null pointer, not just an empty string.
diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c index 4b8c730..8358819 100644 --- a/src/gb/gprs_bssgp.c +++ b/src/gb/gprs_bssgp.c
@@ -811,7 +811,7 @@ } /* 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)