Change in osmo-hlr[master]: src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat May 25 15:36:01 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/14181 )

Change subject: src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()
......................................................................

src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()

Change-Id: I84fc1a0a6a334805b5dc1cef994f70b01a5ffcd4
---
M src/hlr.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/hlr.c b/src/hlr.c
index 694ba14..33d2828 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -487,7 +487,7 @@
 	}
 
 	/* Decode IMEI */
-	if (gsm48_decode_bcd_number(imei, sizeof(imei), gsup->imei_enc, 0) < 0) {
+	if (gsm48_decode_bcd_number2(imei, sizeof(imei), gsup->imei_enc, gsup->imei_enc_len, 0) < 0) {
 		LOGP(DMAIN, LOGL_ERROR, "%s: failed to decode IMEI\n", gsup->imsi);
 		gsup_send_err_reply(conn, gsup->imsi, gsup->message_type, GMM_CAUSE_INV_MAND_INFO);
 		return -1;

-- 
To view, visit https://gerrit.osmocom.org/14181
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I84fc1a0a6a334805b5dc1cef994f70b01a5ffcd4
Gerrit-Change-Number: 14181
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190525/54c8ec7f/attachment.html>


More information about the gerrit-log mailing list