aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-13 11:48:13 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-13 21:20:12 +0000
commit93940a2e353061c1423e266eb27637471c05caa2 (patch)
tree5f09dba9ce17552550e88f6735c13ec93cb72762
parent03209f8eb63f9bd00f0e17c7a578869c310b234b (diff)
vty: Ensure to properly save route pointcode and mask when writing
As osmo_ss7_route_print() returns a static buffer, we cannot use it twice within a single log/print statement. Rather, we must use osmo_ss7_route_print2() for the second call, as it uses a separate static buffer. Change-Id: Ica32e83cbe8af2317cb07f8d8422a399fa537012
-rw-r--r--src/osmo_ss7_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 1b7bcb9..950eb08 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -362,7 +362,7 @@ static void write_one_rtable(struct vty *vty, struct osmo_ss7_route_table *rtabl
llist_for_each_entry(rt, &rtable->routes, list) {
vty_out(vty, " update route %s %s linkset %s",
osmo_ss7_pointcode_print(rtable->inst, rt->cfg.pc),
- osmo_ss7_pointcode_print(rtable->inst, rt->cfg.mask),
+ osmo_ss7_pointcode_print2(rtable->inst, rt->cfg.mask),
rt->cfg.linkset_name);
if (rt->cfg.priority)
vty_out(vty, " priority %u", rt->cfg.priority);