Files
libvirt/tools
Roman Bogorodskiy ebeb4426c5 virsh: fix entering interactive session
When entering an interactive session, that is, without a command
specified:

  virsh --connect $URI

virsh currently segfaults because it tries to access
ctl->cmd->def->handler and the ctl->cmd is NULL.

Fix by checking if ctl->cmd is not NULL before doing further checks.

Fixes: b489eb8d6b
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2026-05-25 10:58:15 +02:00
..
2019-08-09 09:03:53 +02:00
2023-03-13 13:29:07 +01:00