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:
Peter Krempa 2011-12-08 10:09:59 +01:00
parent 33eb3567dd
commit 6235629648

View File

@ -1568,6 +1568,7 @@ hit:
/* attribute not found */
vshPrint(ctl, "%s default", iface);
ret = true;
cleanup:
xmlXPathFreeObject(obj);
xmlXPathFreeContext(ctxt);