Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> --- src/vdagent-virtio-port.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vdagent-virtio-port.c b/src/vdagent-virtio-port.c index de4b748..7e9a3e6 100644 --- a/src/vdagent-virtio-port.c +++ b/src/vdagent-virtio-port.c @@ -392,6 +392,8 @@ static void vdagent_virtio_port_do_read(struct vdagent_virtio_port **vportp) vport->chunk_data_pos += n; if (vport->chunk_data_pos == vport->chunk_header.size) { vdagent_virtio_port_do_chunk(vportp); + if (!*vportp) + return; vport->chunk_header_read = 0; vport->chunk_data_pos = 0; } -- 1.8.1.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel