mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-08 12:08:19 -05:00
virsh: return correct value from cmdDomIfGetLink
Reported by Alex Jia <ajia@redhat.com>. Function cmdDomIfGetLink did not set a success return value on success path. Signed-off-by: Alex Jia<ajia@redhat.com>
This commit is contained in:
@@ -1568,6 +1568,7 @@ hit:
|
||||
/* attribute not found */
|
||||
vshPrint(ctl, "%s default", iface);
|
||||
|
||||
ret = true;
|
||||
cleanup:
|
||||
xmlXPathFreeObject(obj);
|
||||
xmlXPathFreeContext(ctxt);
|
||||
|
||||
Reference in New Issue
Block a user