<p>neels <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15265">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix: vty crash by logging to killed telnet session<br><br>When a telnet session dies (e.g. killall telnet) and also has logging enabled,<br>the closing of the telnet session logs to the killed telnet session and<br>segfaults: the vty->obuf is already NULL.<br><br>In vty_out(), guard against this situation by not composing an output if<br>vty->obuf is NULL.<br><br>Also guard all buffer_*() functions against a NULL buffer argument, which<br>should catch all other hypothetical code paths trying to add to a closed<br>vty->obuf.<br><br>Related: OS#4164<br>Change-Id: Idca3f54dc986abf6784790c12e69e02bdf77cb41<br>---<br>M src/vty/buffer.c<br>M src/vty/vty.c<br>2 files changed, 35 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/65/15265/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15265">change 15265</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/libosmocore/+/15265"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idca3f54dc986abf6784790c12e69e02bdf77cb41 </div>
<div style="display:none"> Gerrit-Change-Number: 15265 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>