aboutsummaryrefslogtreecommitdiff
path: root/migration/tls.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-09-05 12:50:22 +0200
committerJuan Quintela <quintela@redhat.com>2017-10-23 18:03:43 +0200
commit87db1a7d89677e3dbc8b3763e417b9376009bdbb (patch)
tree0fd3fcbae6a9c1dfd3f92402ce364e5522b9c7f9 /migration/tls.c
parent40a5532f820e26f98d081a49aff9283cd63bd5fa (diff)
migration: Improve migration thread error handling
We now report errors also when we finish migration, not only on info migrate. We plan to use this error from several places, and we want the first error to happen to win, so we add an mutex to order it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/tls.c')
-rw-r--r--migration/tls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/migration/tls.c b/migration/tls.c
index 596e8790bd..026a008667 100644
--- a/migration/tls.c
+++ b/migration/tls.c
@@ -119,7 +119,6 @@ static void migration_tls_outgoing_handshake(QIOTask *task,
if (qio_task_propagate_error(task, &err)) {
trace_migration_tls_outgoing_handshake_error(error_get_pretty(err));
migrate_fd_error(s, err);
- error_free(err);
} else {
trace_migration_tls_outgoing_handshake_complete();
migration_channel_connect(s, ioc, NULL);