From 544cd630625ca8fbcbef238db61926d8b8c232a6 Mon Sep 17 00:00:00 2001 From: Pritesh Kothari Date: Thu, 27 Aug 2009 18:47:41 +0100 Subject: [PATCH] Fix crash in virsh vol-key command * src/virsh.c: Pass in pool object to avoid crash in key lookup --- src/virsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab