Change in libosmo-sccp[master]: vty: Fix write-config of local-ip and remote-ip commands

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Oct 23 11:50:26 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15854 )


Change subject: vty: Fix write-config of local-ip and remote-ip commands
......................................................................

vty: Fix write-config of local-ip and remote-ip commands

Fixes: CID#205338
Fixes: CID#205337
Change-Id: I7b01e53aa4bfd714467cbd729cfcf4dc12a64bd4
---
M src/osmo_ss7_vty.c
1 file changed, 3 insertions(+), 3 deletions(-)



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

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 8169aaf..23607ca 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -500,7 +500,7 @@
 		xs->cfg.local.port, VTY_NEWLINE);
 
 	for (i = 0; i < xs->cfg.local.host_cnt; i++) {
-		if (xs->cfg.local.host)
+		if (xs->cfg.local.host[i])
 			vty_out(vty, "  local-ip %s%s", xs->cfg.local.host[i], VTY_NEWLINE);
 	}
 	if (xs->cfg.accept_dyn_reg)
@@ -698,11 +698,11 @@
 	if (asp->cfg.description)
 		vty_out(vty, "  description %s%s", asp->cfg.description, VTY_NEWLINE);
 	for (i = 0; i < asp->cfg.local.host_cnt; i++) {
-		if (asp->cfg.local.host)
+		if (asp->cfg.local.host[i])
 			vty_out(vty, "  local-ip %s%s", asp->cfg.local.host[i], VTY_NEWLINE);
 	}
 	for (i = 0; i < asp->cfg.remote.host_cnt; i++) {
-		if (asp->cfg.remote.host)
+		if (asp->cfg.remote.host[i])
 			vty_out(vty, "  remote-ip %s%s", asp->cfg.remote.host[i], VTY_NEWLINE);
 	}
 	if (asp->cfg.qos_class)

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/15854
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I7b01e53aa4bfd714467cbd729cfcf4dc12a64bd4
Gerrit-Change-Number: 15854
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191023/ce9e9d6c/attachment.htm>


More information about the gerrit-log mailing list