]> git.proxmox.com Git - mirror_frr.git/commit
vtysh: fix completion
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 7 Mar 2017 18:16:21 +0000 (19:16 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 7 Mar 2017 18:20:05 +0000 (19:20 +0100)
commit09e61a383facd3c9e3e52162e98302c7cba15ecc
treee3ae7e36778726e6d2bffd20cdcad3f84a2ae8e3
parentfc2af2b7291f8858db84fc5d8b5104f30eb5d33c
vtysh: fix completion

The return value from cmd_complete_command is a VECTOR_INDEX, not TMP.
Use the appropriate vector_only_index_free().

Fixes #223.

Reported-by: https://github.com/k0ste
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
vtysh/vtysh.c