CLI: fix segfault when browsing an empty history 68/8468/2
authorYoann Desmouceaux <ydesmouc@cisco.com>
Wed, 20 Sep 2017 08:08:28 +0000 (10:08 +0200)
committerChris Luke <chris_luke@comcast.com>
Wed, 20 Sep 2017 14:40:49 +0000 (14:40 +0000)
When one starts VPP, types a command, presses up rather than enter,
then types a new command, unix_cli_line_process_one() segfaults.
This is due to cf->cursor not being reset upon pressing up if the
history is empty.

Change-Id: Ie503f20a9cb551e735abb8b0f4feb8c0006d2b61
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>

No differences found