]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix crash in virsh vol-key command
authorPritesh Kothari <Pritesh.Kothari@Sun.COM>
Thu, 27 Aug 2009 17:47:41 +0000 (18:47 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Aug 2009 17:47:41 +0000 (18:47 +0100)
* src/virsh.c: Pass in pool object to avoid crash in key lookup

src/virsh.c

index 2d0cf81916f9f065aa4593e1854ef08c020d5c45..15e0cef5103c600511dab188043c3b1401463b53 100644 (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;