Change in osmo-mgw[master]: libosmo-mgcp-client : fix unsigned comparison

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/.

Hoernchen gerrit-no-reply at lists.osmocom.org
Thu Sep 9 14:42:08 UTC 2021


Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/25433 )


Change subject: libosmo-mgcp-client : fix unsigned comparison
......................................................................

libosmo-mgcp-client : fix unsigned comparison

Change-Id: Ie2fc2d32d49cc6143a953270aec283b8b2bba3bf
---
M src/libosmo-mgcp-client/mgcp_client_endpoint_fsm.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/33/25433/1

diff --git a/src/libosmo-mgcp-client/mgcp_client_endpoint_fsm.c b/src/libosmo-mgcp-client/mgcp_client_endpoint_fsm.c
index ea4c378..ebef959 100644
--- a/src/libosmo-mgcp-client/mgcp_client_endpoint_fsm.c
+++ b/src/libosmo-mgcp-client/mgcp_client_endpoint_fsm.c
@@ -156,7 +156,7 @@
 static struct osmo_mgcpc_ep_ci *osmo_mgcpc_ep_ci_for_event(struct osmo_mgcpc_ep *ep, uint32_t event)
 {
 	int idx;
-	if (event < FIRST_CI_EVENT)
+	if (FIRST_CI_EVENT && event < FIRST_CI_EVENT)
 		return NULL;
 	idx = EV_TO_CI_IDX(event);
 	if (idx >= sizeof(ep->ci))

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ie2fc2d32d49cc6143a953270aec283b8b2bba3bf
Gerrit-Change-Number: 25433
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210909/7f1503fe/attachment.htm>


More information about the gerrit-log mailing list