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:
Pritesh Kothari 2009-08-27 18:47:41 +01:00 committed by Daniel P. Berrange
parent 3badeffb05
commit 544cd63062

View File

@ -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;