summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-08-28 19:06:43 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-28 19:06:43 +0200
commit6d46ac8951be6a8879759a9decf46344b194c4cf (patch)
treec0661aa89e43cbb4ca79a6b73099de0b48e4f29b
parent72dd761fe1ddeaf1a26d05c9635df1b4dc75842f (diff)
cosmetic: aggressively set vty->index to NULL in osmo_ss7_vty_go_parent()
-rw-r--r--src/osmo_ss7_vty.c2
1 files changed, 2 insertions, 0 deletions
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 @@ int osmo_ss7_vty_go_parent(struct vty *vty)
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;