[MERGED] libosmo-sccp[master]: cosmetic: aggressively set vty->index to NULL in osmo_ss7_vt...

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Aug 29 11:35:16 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: cosmetic: aggressively set vty->index to NULL in osmo_ss7_vty_go_parent()
......................................................................


cosmetic: aggressively set vty->index to NULL in osmo_ss7_vty_go_parent()

Change-Id: I579482f679cd43edfbe796a5806ef360335f1c55
---
M src/osmo_ss7_vty.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 5731326..1fb35a1 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1640,10 +1640,12 @@
 		break;
 	case L_CS7_SCCPADDR_GT_NODE:
 		vty->node = L_CS7_SCCPADDR_NODE;
+		vty->index = NULL;
 		break;
 	case L_CS7_NODE:
 	default:
 		vty->node = CONFIG_NODE;
+		vty->index = NULL;
 		break;
 	}
 	return 0;

-- 
To view, visit https://gerrit.osmocom.org/3732
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I579482f679cd43edfbe796a5806ef360335f1c55
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list