mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 22:29:23 +00:00
Merge pull request #1397 from qlyoung/fix-vtysh-completions-npd
vtysh: protect null deref for cli completions
This commit is contained in:
commit
5f615b1055
@ -820,6 +820,7 @@ static int vtysh_rl_describe(void)
|
|||||||
break;
|
break;
|
||||||
case CMD_ERR_NO_MATCH:
|
case CMD_ERR_NO_MATCH:
|
||||||
cmd_free_strvec(vline);
|
cmd_free_strvec(vline);
|
||||||
|
if (describe)
|
||||||
vector_free(describe);
|
vector_free(describe);
|
||||||
fprintf(stdout, "%% There is no matched command.\n");
|
fprintf(stdout, "%% There is no matched command.\n");
|
||||||
rl_on_new_line();
|
rl_on_new_line();
|
||||||
|
Loading…
Reference in New Issue
Block a user