<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-netif/+/17029">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stream: Drop data during write() while in state NONE<br><br>It should not happen anyway because no fd should be active if state is<br>NONE, but still it's an extra check.<br><br>Change-Id: I6d58762b7d10078eb8d0981c13d35cb6f85cfe86<br>---<br>M src/stream.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/29/17029/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 fe3de2a..1a38e77 100644</span><br><span>--- a/src/stream.c</span><br><span>+++ b/src/stream.c</span><br><span>@@ -247,7 +247,7 @@</span><br><span>  llist_del(lh);</span><br><span>       msg = llist_entry(lh, struct msgb, list);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   if (cli->state == STREAM_CLI_STATE_CONNECTING) {</span><br><span style="color: hsl(120, 100%, 40%);">+   if (!osmo_stream_cli_is_connected(cli)) {</span><br><span>            LOGSCLI(cli, LOGL_ERROR, "not connected, dropping data!\n");</span><br><span>               return 0;</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-netif/+/17029">change 17029</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/+/17029"/><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: I6d58762b7d10078eb8d0981c13d35cb6f85cfe86 </div>
<div style="display:none"> Gerrit-Change-Number: 17029 </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>