Change in libosmo-sccp[master]: vty: Ensure to properly save route pointcode and maks when writing

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Mar 13 11:28:20 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/13232


Change subject: vty: Ensure to properly save route pointcode and maks when writing
......................................................................

vty: Ensure to properly save route pointcode and maks 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
---
M src/osmo_ss7_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/32/13232/1

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 @@
 	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);

-- 
To view, visit https://gerrit.osmocom.org/13232
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica32e83cbe8af2317cb07f8d8422a399fa537012
Gerrit-Change-Number: 13232
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190313/9b92fd31/attachment.html>


More information about the gerrit-log mailing list