From: Li Yang Date: Tue, 29 Apr 2014 02:10:18 +0000 (-0400) Subject: virsh: Replace list element to defined variable X-Git-Tag: CVE-2014-0179~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4fe06e01798bca19ef29f1e4670d26b3be6551f;p=thirdparty%2Flibvirt.git virsh: Replace list element to defined variable Signed-off-by: Li Yang --- diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 10d5db3d4b..bbe83cf690 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -542,7 +542,7 @@ cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) const char *usageStr = virSecretUsageTypeTypeToString(usageType); char uuid[VIR_UUID_STRING_BUFLEN]; - if (virSecretGetUUIDString(list->secrets[i], uuid) < 0) { + if (virSecretGetUUIDString(sec, uuid) < 0) { vshError(ctl, "%s", _("Failed to get uuid of secret")); goto cleanup; }