At 04:54 PM 9/16/2003, Brad Nicholes wrote:
>  Looking through the code I don't see anything that would be a thread-safety issue.  
> What am I missing?


/* rfc1413 - return remote user name, given socket structures */
API_EXPORT(char *) ap_rfc1413(conn_rec *conn, server_rec *srv)
{
    static char user[RFC1413_USERLEN + 1];      /* XXX */
    static char *result;
    static int sock;

Presumes that the requests are serialized (note static storage of these
and the JMP_BUF, which might have per-thread context on some platforms.)

Bill


Reply via email to