Hi!

Something strange in rlm_pap.c code...in  pap_instantiate()
pthread_mutex_init() is called only when "crypt" configured
as encryption scheme, but in pap_detach() pthread_mutex_destroy()
is called without any checking. This cause radiusd to not exit
properly when pap module is used and configured other than for
"crypt" scheme (in case of linking with threads library, I do not
check this without threads).

I think that call to pthread_mutex_init() must be placed either
inside each scheme checking if() block or just before *instance = inst;
at the end of pap_instantiate().


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to