]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainRename: Don't leave a domain locked uppon fail
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Aug 2015 18:40:56 +0000 (20:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Aug 2015 18:42:44 +0000 (20:42 +0200)
Well, yet again one case of 'goto cleanup' while 'goto endjob'
was needed. Sorry.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c

index 180dd88370fa333a39b99f9c4383904f61976715..99a3817ff5ab96d1f6600a76fd56d881a741f045 100644 (file)
@@ -19943,7 +19943,7 @@ static int qemuDomainRename(virDomainPtr dom,
     if (STREQ(vm->def->name, new_name)) {
         virReportError(VIR_ERR_OPERATION_INVALID, "%s",
                        _("Can't rename domain to itself"));
-        goto cleanup;
+        goto endjob;
     }
 
     if (VIR_STRDUP(new_dom_name, new_name) < 0)