<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13232">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: Ensure to properly save route pointcode and maks when writing<br><br>As osmo_ss7_route_print() returns a static buffer, we cannot use it<br>twice within a single log/print statement.  Rather, we must use<br>osmo_ss7_route_print2() for the second call, as it uses a separate<br>static buffer.<br><br>Change-Id: Ica32e83cbe8af2317cb07f8d8422a399fa537012<br>---<br>M src/osmo_ss7_vty.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-sccp refs/changes/32/13232/1</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 1b7bcb9..950eb08 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -362,7 +362,7 @@</span><br><span>   llist_for_each_entry(rt, &rtable->routes, list) {</span><br><span>             vty_out(vty, "  update route %s %s linkset %s",</span><br><span>                    osmo_ss7_pointcode_print(rtable->inst, rt->cfg.pc),</span><br><span style="color: hsl(0, 100%, 40%);">-                       osmo_ss7_pointcode_print(rtable->inst, rt->cfg.mask),</span><br><span style="color: hsl(120, 100%, 40%);">+                   osmo_ss7_pointcode_print2(rtable->inst, rt->cfg.mask),</span><br><span>                         rt->cfg.linkset_name);</span><br><span>            if (rt->cfg.priority)</span><br><span>                     vty_out(vty, " priority %u", rt->cfg.priority);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13232">change 13232</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/13232"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ica32e83cbe8af2317cb07f8d8422a399fa537012 </div>
<div style="display:none"> Gerrit-Change-Number: 13232 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>