Change in osmo-iuh[master]: tests/hnb-test: Fix signedness of imsi_buf

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Jan 14 10:31:39 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/22170 )


Change subject: tests/hnb-test: Fix signedness of imsi_buf
......................................................................

tests/hnb-test: Fix signedness of imsi_buf

Change-Id: I3b0a6218ac6242d03642972d5b244815ce9d97a0
---
M src/tests/hnb-test.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/70/22170/1

diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 4b726fa..6b9985f 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -112,7 +112,7 @@
 	struct msgb *msg;
 	int rc, imsi_len;
 
-	char imsi_buf[16];
+	uint8_t imsi_buf[16];
 
 	UERegisterRequest_t request_out;
 	UERegisterRequestIEs_t request;
@@ -121,7 +121,7 @@
 	request.uE_Identity.present = UE_Identity_PR_iMSI;
 
 	imsi_len = ranap_imsi_encode(imsi_buf, sizeof(imsi_buf), imsi_str);
-	OCTET_STRING_fromBuf(&request.uE_Identity.choice.iMSI, imsi_buf, imsi_len);
+	OCTET_STRING_fromBuf(&request.uE_Identity.choice.iMSI, (const char*)imsi_buf, imsi_len);
 
 	request.registration_Cause = Registration_Cause_normal;
 	request.uE_Capabilities.access_stratum_release_indicator = Access_stratum_release_indicator_rel_6;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/22170
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I3b0a6218ac6242d03642972d5b244815ce9d97a0
Gerrit-Change-Number: 22170
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210114/4285cfa9/attachment.htm>


More information about the gerrit-log mailing list