]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: protect null deref for cli completions 1397/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 2 Nov 2017 15:50:13 +0000 (11:50 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 2 Nov 2017 15:53:24 +0000 (11:53 -0400)
commit9320658c0d448fd6d90f2b438d0cc60d9a2765d4
tree803ab050bb5ef9b016abd63f43ccd91ede1ae7b2
parente919cf55bd9c9b40be6747aeddd83699d8bbae3b
vtysh: protect null deref for cli completions

cmd_describe_command() returns NULL when there is no matched command, so
check the return value before trying to free it

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vtysh/vtysh.c