mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
Fix crash in virsh vol-key command
* src/virsh.c: Pass in pool object to avoid crash in key lookup
This commit is contained in:
parent
3badeffb05
commit
544cd63062
@ -5206,7 +5206,7 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd)
|
||||
if (!vshConnectionUsability(ctl, ctl->conn, TRUE))
|
||||
return FALSE;
|
||||
|
||||
if (!(vol = vshCommandOptVolBy(ctl, cmd, "vol", NULL, NULL,
|
||||
if (!(vol = vshCommandOptVolBy(ctl, cmd, "vol", "pool", NULL,
|
||||
VSH_BYUUID)))
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user