aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-04-03 18:16:50 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-04-18 15:30:47 +0200
commit9f6e558215b6862fdb6f4120f1f479f162d57634 (patch)
treeba9a06ab79571a237329441eccbf2e643129d0e8
parent633fe291f52e3b95849ec1d1b6cd113e557eb0ab (diff)
add missing error log: invalid IMSI
-rw-r--r--src/hlr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 422a56d..19cfebb 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -454,8 +454,10 @@ static int read_cb(struct osmo_gsup_conn *conn, struct msgb *msg)
/* 3GPP TS 23.003 Section 2.2 clearly states that an IMSI with less than 5
* digits is impossible. Even 5 digits is a highly theoretical case */
- if (strlen(gsup.imsi) < 5)
+ if (strlen(gsup.imsi) < 5) {
+ LOGP(DMAIN, LOGL_ERROR, "IMSI too short: %s\n", osmo_quote_str(gsup.imsi, -1));
return gsup_send_err_reply(conn, gsup.imsi, gsup.message_type, GMM_CAUSE_INV_MAND_INFO);
+ }
switch (gsup.message_type) {
/* requests sent to us */