From: Pritesh Kothari Date: Thu, 27 Aug 2009 17:47:41 +0000 (+0100) Subject: Fix crash in virsh vol-key command X-Git-Tag: v0.7.1~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=544cd630625ca8fbcbef238db61926d8b8c232a6;p=thirdparty%2Flibvirt.git Fix crash in virsh vol-key command * src/virsh.c: Pass in pool object to avoid crash in key lookup --- diff --git a/src/virsh.c b/src/virsh.c index 2d0cf81916..15e0cef510 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -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;