<p style="white-space: pre-wrap; word-wrap: break-word;">(submitting old comments I forgot to submit)</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15916">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15916/2/src/gsup_server.c">File src/gsup_server.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-hlr/+/15916/2/src/gsup_server.c@66">Patch Set #2, Line 66:</a> <code style="font-family:monospace,monospace">only REQUESTs need an error reply</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Probably, makes sense to print a warning then.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">so far calling code does this if(), maybe is more obvious to keep it that way?<br>I don't think we need to send a warning if we don't need to answer.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15916/2/src/gsup_server.c@88">Patch Set #2, Line 88:</a> <code style="font-family:monospace,monospace">OSMO_ASSERT</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">osmo_gsup_msgb_alloc() also assert()s the result of allocation, so this is redundant.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">thx</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15916/2/src/gsup_server.c@89">Patch Set #2, Line 89:</a> <code style="font-family:monospace,monospace">osmo_gsup_encode</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Should we check if encoding failed?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">hmm, I think we could entirely drop the return code and all, because:<br>if I am trying to send an error response, but sending the error response fails,<br>then what can I do? Pretty much nothing at all, we're stuffed on top of an error anyway.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But yes, would be good to log the error at least.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15916">change 15916</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-hlr/+/15916"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I792fd9993ab2a323af58782a357d71205c43b72a </div>
<div style="display:none"> Gerrit-Change-Number: 15916 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 25 Nov 2019 21:57:45 +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: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>