conncheck: Don't remove elements in the conncheck list while iterating it
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 2 Oct 2014 22:37:34 +0000 (18:37 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 9 Oct 2014 20:26:07 +0000 (16:26 -0400)
commite01b3e026d523e9ae7ccd6b23632f9e0cad315a4
tree86986a0c62cce91b71c2b00ea5675fc1f7d51740
parent375cde8a652f8e367cf875bcb718a6d1abcfb254
conncheck: Don't remove elements in the conncheck list while iterating it

priv_limit_conn_check_list_size() would remove elemtns from the conncheck_list
while the calling functions were iterating it. Now instead just mark them as
cancelled. Then later, at the outer function, free all cancelled elements to
prevent the list from growing out of bounds.
agent/conncheck.c