aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-01-14 11:17:19 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-01-14 11:26:15 +0100
commit96a94bc4825639702d30039c7d7d668bbd60fb97 (patch)
tree59261d9b68ed12625cdb8902a1cd5e0b84c90a8b
parentb4ff1f42b83847574f50dac9589174059ec9459f (diff)
tests/hnb-test: check return code of hnbap_encode_ueregisterrequesties
gcc warns about set but not used variable otherwise. Change-Id: Ia49b7e88a66a4a744c2b14db6331cc0de431f60b
-rw-r--r--src/tests/hnb-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 6b9985f..4696e80 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -94,6 +94,7 @@ static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test)
memset(&dereg, 0, sizeof(dereg));
rc = hnbap_encode_uede_registeries(&dereg, &dereg_ies);
+ OSMO_ASSERT(rc == 0);
msg = hnbap_generate_initiating_message(ProcedureCode_id_UEDe_Register,
Criticality_ignore,
@@ -129,6 +130,7 @@ static int hnb_test_ue_register_tx(struct hnb_test *hnb_test, const char *imsi_s
memset(&request_out, 0, sizeof(request_out));
rc = hnbap_encode_ueregisterrequesties(&request_out, &request);
+ OSMO_ASSERT(rc == 0);
msg = hnbap_generate_initiating_message(ProcedureCode_id_UERegister,
Criticality_reject,