-
In pipe_output_stream_is_writable, if the peer is already gone, peer_closed is set to TRUE and in this case, peer->read should not be accessed as peer is NULL. Otherwise, the following sequence of calls (simplified) would trigger a segfault: spice_make_pipe(p1, p2); g_output_stream_write_all_async(p1_out); g_clear_object(p2); g_pollable_output_stream_is_writable(p1_out); Signed-off-by: Jakub Janků <jjanku@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
6a14f9ce