diff options
author | Uri Lublin <uril@redhat.com> | 2013-06-26 22:20:01 +0300 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2013-07-16 23:37:25 +0300 |
commit | 255abf0a5726ed203937dce61ec570842c137708 (patch) | |
tree | d354316bb11ebba59a9e13cf4bda16b5733d9385 /server/main_dispatcher.c | |
parent | 53488f0275d6c8a121af49f7ac817d09ce68090d (diff) | |
download | spice-255abf0a5726ed203937dce61ec570842c137708.tar.gz spice-255abf0a5726ed203937dce61ec570842c137708.tar.xz spice-255abf0a5726ed203937dce61ec570842c137708.zip |
red_worker: use only RCC_FOREACH_SAFE
RCC_FOREACH may be dangerous
The following patches replace FOREACH loops with a SAFE version.
Using unsafe loops may cause spice-server to abort (assert fails).
Specifically a read/write fail in those loops, may cause the client
to disconnect, removing the node currently iterated, which cause spice
to abort in ring_next():
-- assertion `pos->next != NULL && pos->prev != NULL' failed
Diffstat (limited to 'server/main_dispatcher.c')
0 files changed, 0 insertions, 0 deletions