<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22462">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ctrl_connection: Initialize write_queue.bfd.fd to -1 during allocation<br><br>Otherwise fd is set to 0 by default, let's avoid accidentally closing<br>it if something goes wrong.<br><br>Change-Id: I98f744d2880fbb883719cdf1d3eb31f2b22a13b6<br>---<br>M src/ctrl/control_if.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/62/22462/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c</span><br><span>index 9e3e3a9..5eb81c7 100644</span><br><span>--- a/src/ctrl/control_if.c</span><br><span>+++ b/src/ctrl/control_if.c</span><br><span>@@ -514,6 +514,7 @@</span><br><span>        INIT_LLIST_HEAD(&ccon->def_cmds);</span><br><span> </span><br><span>         ccon->write_queue.bfd.data = data;</span><br><span style="color: hsl(120, 100%, 40%);">+ ccon->write_queue.bfd.fd = -1;</span><br><span>    ccon->write_queue.write_cb = control_write_cb;</span><br><span>    ccon->write_queue.read_cb = handle_control_read;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22462">change 22462</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/+/22462"/><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: I98f744d2880fbb883719cdf1d3eb31f2b22a13b6 </div>
<div style="display:none"> Gerrit-Change-Number: 22462 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>