<p><a href="https://gerrit.osmocom.org/c/osmo-cbc/+/25931">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-cbc/+/25931/1/src/rest_api.c">File src/rest_api.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-cbc/+/25931/1/src/rest_api.c@605">Patch Set #1, Line 605:</a> <code style="font-family:monospace,monospace">  int message_id;</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">so iirc there's another patch from Vadim now in gerrit simply dropping the "message_id < 0" check from line 614. Please agree on which one to merge.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Unfortunately, we both attempted to fix the same issue. I abandoned my patch.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">perhaps atoi() can return negative if there's an error?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">No, atoi() does not detect errors at all.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">It may be a good place to use neel's recent APIs to read integers from string using libosmocore.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I don't see the need for this complication...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-cbc/+/25931">change 25931</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/c/osmo-cbc/+/25931"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-cbc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I650fce5bd64752823ee57d8b528d2b371fada857 </div>
<div style="display:none"> Gerrit-Change-Number: 25931 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 Oct 2021 15:15:54 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>