Revision 1fdc11c3

b/migration.c
216 216

  
217 217
    qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
218 218
    qemu_file_put_notify(s->file);
219
    if (qemu_file_get_error(s->file)) {
219
    if (s->file && qemu_file_get_error(s->file)) {
220 220
        migrate_fd_error(s);
221 221
    }
222 222
}

Also available in: Unified diff