<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-netif/+/15819">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stream: Fix fd param passed to close() in error conditon<br><br>Fixes: CID#205089, CID#205087<br>Change-Id: I65714f214b9962862cda01605c7c2c578c78d3c7<br>---<br>M src/stream.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/19/15819/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/stream.c b/src/stream.c</span><br><span>index b7e5c3c..744a904 100644</span><br><span>--- a/src/stream.c</span><br><span>+++ b/src/stream.c</span><br><span>@@ -586,7 +586,7 @@</span><br><span>         return 0;</span><br><span> </span><br><span> error_close_socket:</span><br><span style="color: hsl(0, 100%, 40%);">-    close(ret);</span><br><span style="color: hsl(120, 100%, 40%);">+   close(cli->ofd.fd);</span><br><span>       cli->ofd.fd = -1;</span><br><span>         return -EIO;</span><br><span> }</span><br><span>@@ -654,7 +654,7 @@</span><br><span>      return 0;</span><br><span> </span><br><span> error_close_socket:</span><br><span style="color: hsl(0, 100%, 40%);">-    close(ret);</span><br><span style="color: hsl(120, 100%, 40%);">+   close(cli->ofd.fd);</span><br><span>       cli->ofd.fd = -1;</span><br><span>         return -EIO;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-netif/+/15819">change 15819</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/libosmo-netif/+/15819"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-netif </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I65714f214b9962862cda01605c7c2c578c78d3c7 </div>
<div style="display:none"> Gerrit-Change-Number: 15819 </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>