[PATCH] libosmocore[master]: gsup decode: fix expectation of AUTS length, should be 14

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Tue Feb 21 15:20:38 UTC 2017


Review at  https://gerrit.osmocom.org/1860

gsup decode: fix expectation of AUTS length, should be 14

The wrong expectation caused OsmoHLR to fail on Auth Sync.

Change-Id: I277fb3d407396dffa5c07a9c5454d87a415d393f
---
M src/gsm/gsup.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/60/1860/1

diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c
index ec1dc90..a813ed8 100644
--- a/src/gsm/gsup.c
+++ b/src/gsm/gsup.c
@@ -339,9 +339,9 @@
 			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;

-- 
To view, visit https://gerrit.osmocom.org/1860
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I277fb3d407396dffa5c07a9c5454d87a415d393f
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>


More information about the gerrit-log mailing list