Fix use-after-free in loop over modified list
authorDavid Barksdale <amatus@amat.us>
Tue, 19 Dec 2017 00:39:03 +0000 (18:39 -0600)
committerDavid Barksdale <amatus@amat.us>
Tue, 19 Dec 2017 00:39:03 +0000 (18:39 -0600)
commit012ff13acc0cb2f5d7210aa48819395fecf12a3d
treeb602b34b4e05fee76f1c67ac369322b6f729ad82
parent2492acd4208bf14bf7747d235cfb9971f2cfbf99
Fix use-after-free in loop over modified list

This loop saved the next pointer which is OK if the current element is
being freed, but the callback can cause other elements to be freed which
was detected by ASAN.
src/cadet/gnunet-service-cadet_peer.c