<p>Neels Hofmeyr <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11113">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: fix 'show asp' from within 'asp' node<br><br>When entering an 'cs7' / 'asp' node, and invoking 'do show cs7 i 0 asp', the<br>ASP's FSM instance is not yet allocated. Hence attempting to print its status<br>will result in a segfault.<br><br>Spotted this while writing VTY tests that will follow shortly in another patch<br>(I6a28684fa24d6e7de568623444297028eba2ab8c).<br><br>Change-Id: I3ebf498492c6ba69a5dd1c9f36acdabfd6fbdfe1<br>---<br>M src/osmo_ss7_vty.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c</span><br><span>index 2f70bb6..d109a0c 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -666,7 +666,8 @@</span><br><span> </span><br><span>         llist_for_each_entry(asp, &inst->asp_list, list) {</span><br><span>            vty_out(vty, "%-12s  %-12s  %-13s  %-4s  %-8u %-15s %-10s%s",</span><br><span style="color: hsl(0, 100%, 40%);">-                 asp->cfg.name, "?", osmo_fsm_inst_state_name(asp->fi),</span><br><span style="color: hsl(120, 100%, 40%);">+                        asp->cfg.name, "?",</span><br><span style="color: hsl(120, 100%, 40%);">+                      asp->fi? osmo_fsm_inst_state_name(asp->fi) : "uninitialized",</span><br><span>                        get_value_string(osmo_ss7_asp_protocol_vals, asp->cfg.proto),</span><br><span>                     asp->cfg.remote.port, asp->cfg.remote.host, "", VTY_NEWLINE);</span><br><span>        }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11113">change 11113</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/11113"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I3ebf498492c6ba69a5dd1c9f36acdabfd6fbdfe1 </div>
<div style="display:none"> Gerrit-Change-Number: 11113 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>