summaryrefslogtreecommitdiffstats
path: root/src/gsm/gsup.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-21 15:53:20 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-21 16:19:40 +0100
commit3a5ca647c531b7761dc6c555e5e0cabc972bd3ac (patch)
tree9a13fe91e0cad81fac44a4f57eb8641de5f02f24 /src/gsm/gsup.c
parent32ee5af8935406578a2b811bd3cec65e980d2918 (diff)
gsup decode: fix expectation of AUTS length, should be 14
The wrong expectation caused OsmoHLR to fail on Auth Sync. Change-Id: I277fb3d407396dffa5c07a9c5454d87a415d393f
Diffstat (limited to 'src/gsm/gsup.c')
-rw-r--r--src/gsm/gsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c
index ec1dc906..a813ed8a 100644
--- a/src/gsm/gsup.c
+++ b/src/gsm/gsup.c
@@ -339,9 +339,9 @@ int osmo_gsup_decode(const uint8_t *const_data, size_t data_len,
break;
case OSMO_GSUP_AUTS_IE:
- if (value_len != 16) {
+ if (value_len != 14) {
LOGP(DLGSUP, LOGL_ERROR,
- "AUTS length != 16 received\n");
+ "AUTS length != 14 received\n");
return -GMM_CAUSE_COND_IE_ERR;
}
gsup_msg->auts = value;