Re: [Spice-devel] [PATCH spice] red_worker: Check for NULL watches

2012-03-13 Thread Alon Levy
On Tue, Mar 13, 2012 at 04:42:06PM +0100, Hans de Goede wrote: > If we run out of watches slots, we return NULL from watch_add, which > means that the other watch_foo functions may get called with a NULL > parameter, protect them against this. ACK. Also, sounds horrible (the existing behavior, not

[Spice-devel] [PATCH spice] red_worker: Check for NULL watches

2012-03-13 Thread Hans de Goede
If we run out of watches slots, we return NULL from watch_add, which means that the other watch_foo functions may get called with a NULL parameter, protect them against this. Signed-off-by: Hans de Goede --- server/red_worker.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletion