mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 10:09:25 +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,7 +820,8 @@ static int vtysh_rl_describe(void)
|
||||
break;
|
||||
case CMD_ERR_NO_MATCH:
|
||||
cmd_free_strvec(vline);
|
||||
vector_free(describe);
|
||||
if (describe)
|
||||
vector_free(describe);
|
||||
fprintf(stdout, "%% There is no matched command.\n");
|
||||
rl_on_new_line();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user