<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22318">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns2: correct handle BLOCK message on initator<br><br>A BLOCK message can be received when waiting for a UNBLOCK message<br>in state BLOCK<br><br>Related: SYS#5208<br>Change-Id: Ie7b34b3ef04aa28304143191222324e1a3786cb2<br>---<br>M src/gb/gprs_ns2_vc_fsm.c<br>1 file changed, 4 insertions(+), 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/18/22318/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c</span><br><span>index 8604bbe..849e74f 100644</span><br><span>--- a/src/gb/gprs_ns2_vc_fsm.c</span><br><span>+++ b/src/gb/gprs_ns2_vc_fsm.c</span><br><span>@@ -345,6 +345,10 @@</span><br><span>      } else {</span><br><span>             /* we are on the receiving end. The initiator who sent RESET is responsible to UNBLOCK! */</span><br><span>           switch (event) {</span><br><span style="color: hsl(120, 100%, 40%);">+              case GPRS_NS2_EV_BLOCK:</span><br><span style="color: hsl(120, 100%, 40%);">+                       ns2_tx_block_ack(priv->nsvc);</span><br><span style="color: hsl(120, 100%, 40%);">+                      osmo_timer_del(&fi->timer);</span><br><span style="color: hsl(120, 100%, 40%);">+                    break;</span><br><span>               case GPRS_NS2_EV_UNBLOCK:</span><br><span>                    ns2_tx_unblock_ack(priv->nsvc);</span><br><span>                   osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNBLOCKED,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22318">change 22318</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/+/22318"/><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: Ie7b34b3ef04aa28304143191222324e1a3786cb2 </div>
<div style="display:none"> Gerrit-Change-Number: 22318 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>