Use "last_found" in a thread-safe manner
authorAlan T. DeKok <aland@freeradius.org>
Mon, 19 Dec 2011 20:44:37 +0000 (15:44 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Dec 2011 13:34:39 +0000 (08:34 -0500)
commit1b6176fad085c0547588a09fd0cdae18f1458b40
tree921154fb15a4564c0b6d1b52c6afd28ddfc6e96f
parentc030140d36f18516d2cd1d2b82ada4151c7eef15
Use "last_found" in a thread-safe manner

It's a thread-local variable, not a variable global to the
configuration.

Note also that much of the rest of the module is poor.
Re-reading the files for every packet is HORRIBLE.  It causes
more threading issues.
Fixed-size hash tables are similarly poor practice.
src/modules/rlm_passwd/rlm_passwd.c