<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21378">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">frame_relay: Fix error path on ioctl() failure<br><br>We don't want to pass -EINVAL as file descriptor into the bind() call.<br><br>Closes: CID#215529<br>Change-Id: Ic4d411c0ade6867c4fe2c01eb3368e6420158724<br>---<br>M src/gb/gprs_ns2_fr.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/78/21378/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c</span><br><span>index 80e3366..d0ff010 100644</span><br><span>--- a/src/gb/gprs_ns2_fr.c</span><br><span>+++ b/src/gb/gprs_ns2_fr.c</span><br><span>@@ -320,6 +320,7 @@</span><br><span>                    strerror(errno));</span><br><span>            close(fd);</span><br><span>           fd = -EINVAL;</span><br><span style="color: hsl(120, 100%, 40%);">+         return fd;</span><br><span>   }</span><br><span> </span><br><span>        rc = bind(fd, (struct sockaddr *)&addr, sizeof(addr));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21378">change 21378</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/+/21378"/><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: Ic4d411c0ade6867c4fe2c01eb3368e6420158724 </div>
<div style="display:none"> Gerrit-Change-Number: 21378 </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-MessageType: newchange </div>