Code

write_graphite plugin: Fix locking.
authorFlorian Forster <octo@collectd.org>
Fri, 3 Feb 2012 09:54:58 +0000 (10:54 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 3 Feb 2012 09:54:58 +0000 (10:54 +0100)
wg_send_buffer() is called from wg_flush_nolock(). When calling
wg_flush_nolock(), the thread has to hold cb->send_lock. Locking it again
will fail, but this condition is not checked for. Then the lock is
released twice which may result in concurrency issues.

Change-Id: Ie3062d50e6545adeb95b3a1938837c1f26835a56


No differences found