<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/15854">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: Fix write-config of local-ip and remote-ip commands<br><br>Fixes: CID#205338<br>Fixes: CID#205337<br>Change-Id: I7b01e53aa4bfd714467cbd729cfcf4dc12a64bd4<br>---<br>M src/osmo_ss7_vty.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<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 8169aaf..23607ca 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -500,7 +500,7 @@</span><br><span>               xs->cfg.local.port, VTY_NEWLINE);</span><br><span> </span><br><span>     for (i = 0; i < xs->cfg.local.host_cnt; i++) {</span><br><span style="color: hsl(0, 100%, 40%);">-            if (xs->cfg.local.host)</span><br><span style="color: hsl(120, 100%, 40%);">+            if (xs->cfg.local.host[i])</span><br><span>                        vty_out(vty, "  local-ip %s%s", xs->cfg.local.host[i], VTY_NEWLINE);</span><br><span>    }</span><br><span>    if (xs->cfg.accept_dyn_reg)</span><br><span>@@ -698,11 +698,11 @@</span><br><span>       if (asp->cfg.description)</span><br><span>                 vty_out(vty, "  description %s%s", asp->cfg.description, VTY_NEWLINE);</span><br><span>  for (i = 0; i < asp->cfg.local.host_cnt; i++) {</span><br><span style="color: hsl(0, 100%, 40%);">-           if (asp->cfg.local.host)</span><br><span style="color: hsl(120, 100%, 40%);">+           if (asp->cfg.local.host[i])</span><br><span>                       vty_out(vty, "  local-ip %s%s", asp->cfg.local.host[i], VTY_NEWLINE);</span><br><span>   }</span><br><span>    for (i = 0; i < asp->cfg.remote.host_cnt; i++) {</span><br><span style="color: hsl(0, 100%, 40%);">-          if (asp->cfg.remote.host)</span><br><span style="color: hsl(120, 100%, 40%);">+          if (asp->cfg.remote.host[i])</span><br><span>                      vty_out(vty, "  remote-ip %s%s", asp->cfg.remote.host[i], VTY_NEWLINE);</span><br><span>         }</span><br><span>    if (asp->cfg.qos_class)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/15854">change 15854</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-sccp/+/15854"/><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-Change-Id: I7b01e53aa4bfd714467cbd729cfcf4dc12a64bd4 </div>
<div style="display:none"> Gerrit-Change-Number: 15854 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>