<p>Daniel Willmann has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13819">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmgcp: Parse CI as hex string in verify_ci()<br><br>In verify_ci CI needs to be parsed as hex instead of dec number as well.<br><br>Fixes: OS#3951<br>Change-Id: I687b467756fa30cbc454e3583c86159d9abcc7d9<br>---<br>M openbsc/src/libmgcp/mgcp_protocol.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/19/13819/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c</span><br><span>index 689c91f..3ecf6e2 100644</span><br><span>--- a/openbsc/src/libmgcp/mgcp_protocol.c</span><br><span>+++ b/openbsc/src/libmgcp/mgcp_protocol.c</span><br><span>@@ -509,7 +509,7 @@</span><br><span> static int verify_ci(const struct mgcp_endpoint *endp,</span><br><span>               const char *_ci)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-      uint32_t ci = strtoul(_ci, NULL, 10);</span><br><span style="color: hsl(120, 100%, 40%);">+ uint32_t ci = strtoul(_ci, NULL, 16);</span><br><span> </span><br><span>    if (ci != endp->ci) {</span><br><span>             LOGP(DMGCP, LOGL_ERROR, "ConnectionIdentifiers do not match on 0x%x. %x != %x\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13819">change 13819</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13819"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: openbsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I687b467756fa30cbc454e3583c86159d9abcc7d9 </div>
<div style="display:none"> Gerrit-Change-Number: 13819 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daniel Willmann <dwillmann@sysmocom.de> </div>