mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
libxl: Resolve Coverity warnings
Resolve two Coverity issues introduced by commit id '9b8d6e1e' Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
aec0c6d3d5
commit
5ca7c95549
@ -98,8 +98,7 @@ libxlDoMigrateReceive(virNetSocketPtr sock,
|
|||||||
size_t i;
|
size_t i;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
virNetSocketAccept(sock, &client_sock);
|
if (virNetSocketAccept(sock, &client_sock) < 0) {
|
||||||
if (client_sock == NULL) {
|
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||||
_("Fail to accept migration connection"));
|
_("Fail to accept migration connection"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -526,8 +525,7 @@ libxlDomainMigrationFinish(virConnectPtr dconn,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (event)
|
if (event)
|
||||||
libxlDomainEventQueue(driver, event);
|
libxlDomainEventQueue(driver, event);
|
||||||
if (vm)
|
virObjectUnlock(vm);
|
||||||
virObjectUnlock(vm);
|
|
||||||
virObjectUnref(cfg);
|
virObjectUnref(cfg);
|
||||||
return dom;
|
return dom;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user