Fix infinite loop in daemon if client quits with multiple streams open

The daemon loops over the linked list of streams when a client
quits, closing any that the client hadn't already closed. Except
it didn't ever move to the next element in the list!

* daemon/stream.c: Fix loop over linked list of streams
This commit is contained in:
Daniel P. Berrange 2011-03-18 16:24:24 +00:00
parent 230a5d8b4a
commit 88416593e1

View File

@ -343,6 +343,7 @@ remoteRemoveClientStream(struct qemud_client *client,
filter->next = filter->next->next;
break;
}
filter = filter->next;
}
}