From 14616d7e589debb910db6aa409990a84dc74185a Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Tue, 30 Apr 2019 04:01:47 +0200 Subject: libmgcp: Parse CI as hex string in verify_ci() In verify_ci CI needs to be parsed as hex instead of dec number as well. Fixes: OS#3951 Change-Id: I687b467756fa30cbc454e3583c86159d9abcc7d9 --- openbsc/src/libmgcp/mgcp_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c index 689c91f54..3ecf6e260 100644 --- a/openbsc/src/libmgcp/mgcp_protocol.c +++ b/openbsc/src/libmgcp/mgcp_protocol.c @@ -509,7 +509,7 @@ static int verify_call_id(const struct mgcp_endpoint *endp, static int verify_ci(const struct mgcp_endpoint *endp, const char *_ci) { - uint32_t ci = strtoul(_ci, NULL, 10); + uint32_t ci = strtoul(_ci, NULL, 16); if (ci != endp->ci) { LOGP(DMGCP, LOGL_ERROR, "ConnectionIdentifiers do not match on 0x%x. %x != %x\n", -- cgit v1.2.3