提交 544cd630 编写于 作者: P Pritesh Kothari 提交者: Daniel P. Berrange

Fix crash in virsh vol-key command

* src/virsh.c: Pass in pool object to avoid crash in key lookup
上级 3badeffb
...@@ -5206,7 +5206,7 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册