mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06: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))
|
if (!vshConnectionUsability(ctl, ctl->conn, TRUE))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!(vol = vshCommandOptVolBy(ctl, cmd, "vol", NULL, NULL,
|
if (!(vol = vshCommandOptVolBy(ctl, cmd, "vol", "pool", NULL,
|
||||||
VSH_BYUUID)))
|
VSH_BYUUID)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user