vlib: fix unix cli commands crash without session 58/28458/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 11 May 2020 14:27:29 +0000 (16:27 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 18 Aug 2020 19:47:21 +0000 (19:47 +0000)
commitf89bbaac78afa057a52bfe4ab41dcecf60139bd2
tree85e1eff8902c074504918f99fa92d446f47d984b
parentd8c4326aaeb16c3faf4276d6b858834b0939f0c5
vlib: fix unix cli commands crash without session

If a cli command is run while there are no cli session, then
cm->cli_file_pool will not be initialized and we should not try to
operate on it.

Type: fix

Change-Id: Iaea15a23f7efd5b17fab13e6c1cbb3a9a34080e0
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit a58be82dda89d6496f92e451b42eee31f0cf47b4)
src/vlib/unix/cli.c