FreeRADIUS/freeradius-server — pull request #775 by ncopa (2014-09-02 08:44:44+00:00)
Title: Use threadsafe wrapper for getpwnam/getgrnam

Even if rlm_unix is marked as RLM_TYPE_THREAD_UNSAFE, it runs in a
separate thread than the main thread. Both main thread and rlm_unix
uses thread unsafe getpwnam/getgrnam which causes segfault when under
stress.

We create a thread safe wrapper for those that uses TLS.

This fixes #767