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

Change-Id: I579482f679cd43edfbe796a5806ef360335f1c55
This commit is contained in:
Neels Hofmeyr 2017-08-28 19:06:43 +02:00
parent 72dd761fe1
commit 6d46ac8951
1 changed files with 2 additions and 0 deletions

View File

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