Call pthread_setspecific for every thread that calls fr_thread_local_init, not just...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Sep 2016 09:52:47 +0000 (13:52 +0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Sep 2016 09:53:13 +0000 (13:53 +0400)
commitd5892b07237a43a990bb15d504e4c51ba836c420
tree58a20b301b2f18a15993ca1aca2d845638a16c4e
parent6d6aca7b83909bbe485691d9ad1526ff93e94334
Call pthread_setspecific for every thread that calls fr_thread_local_init, not just the first one. Otherwise, the value associated with the key is NULL and the destructor isn't called.
src/include/threads.h