<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13743">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mgcp_msg: Log faulty line on Osmux parsing error<br><br>Change-Id: I436e53963f8e7d00f3111ff81f7b08475c4b8ae9<br>---<br>M src/libosmo-mgcp/mgcp_msg.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/43/13743/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libosmo-mgcp/mgcp_msg.c b/src/libosmo-mgcp/mgcp_msg.c</span><br><span>index f98b9ee..5844d41 100644</span><br><span>--- a/src/libosmo-mgcp/mgcp_msg.c</span><br><span>+++ b/src/libosmo-mgcp/mgcp_msg.c</span><br><span>@@ -365,8 +365,11 @@</span><br><span> {</span><br><span>     int osmux_cid;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      if (sscanf(line + 2, "Osmux: %u", &osmux_cid) != 1)</span><br><span style="color: hsl(120, 100%, 40%);">+     if (sscanf(line + 2, "Osmux: %u", &osmux_cid) != 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+           LOGP(DLMGCP, LOGL_ERROR, "Failed parsing Osmux in MGCP msg line: %s\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                  line);</span><br><span>          return -1;</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span> </span><br><span>        if (osmux_cid > OSMUX_CID_MAX) {</span><br><span>          LOGP(DLMGCP, LOGL_ERROR, "Osmux ID too large: %u > %u\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13743">change 13743</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/13743"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I436e53963f8e7d00f3111ff81f7b08475c4b8ae9 </div>
<div style="display:none"> Gerrit-Change-Number: 13743 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>