From: Ján Tomko Date: Wed, 28 Nov 2012 13:34:49 +0000 (+0100) Subject: virsh: fix error messages in iface-bridge X-Git-Tag: CVE-2012-3411~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=924a6c7f6ad3fb3c3bb91feadccd12e6e471856f;p=thirdparty%2Flibvirt.git virsh: fix error messages in iface-bridge The error messages did not correspond to the attributes they printed. --- diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c index 9ceb122f9c..3a6285bd20 100644 --- a/tools/virsh-interface.c +++ b/tools/virsh-interface.c @@ -813,13 +813,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd) */ if (!xmlSetProp(if_node, BAD_CAST "type", BAD_CAST if_type)) { vshError(ctl, _("Failed to set new slave interface type to '%s' in xml document"), - if_name); + if_type); goto cleanup; } if (!xmlSetProp(if_node, BAD_CAST "name", BAD_CAST if_name)) { vshError(ctl, _("Failed to set new slave interface name to '%s' in xml document"), - br_name); + if_name); goto cleanup; }