vlib: fix unix cli commands crash without session 80/26980/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 11 May 2020 14:27:29 +0000 (16:27 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 14 May 2020 12:27:39 +0000 (12:27 +0000)
commita58be82dda89d6496f92e451b42eee31f0cf47b4
tree8361fdf538dc853f99d4f4394537f488acc601d0
parent0ef9153989fd22f18c5a803167c6581202155efb
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>
src/vlib/unix/cli.c