diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2019-04-30 04:01:47 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2019-04-30 04:01:47 +0200 |
commit | 14616d7e589debb910db6aa409990a84dc74185a (patch) | |
tree | 763631c5bdfe830bcb84108329db341c666982ce /openbsc/src | |
parent | be0e831fa33a2590348952ed35df5e9b9b8caf85 (diff) |
libmgcp: Parse CI as hex string in verify_ci()daniel/wip
In verify_ci CI needs to be parsed as hex instead of dec number as well.
Fixes: OS#3951
Change-Id: I687b467756fa30cbc454e3583c86159d9abcc7d9
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |