libexec/ftpd/ftpd.c and pam

Eric van Gyzen vangyzen at stat.duke.edu
Tue Jan 27 17:35:29 PST 2004


The auth_pam function in src/libexec/ftpd/ftpd.c defines a local variable
    pam_handle_t *pamh = NULL;
which shadows the same variable in the global scope.  This seems 
unintentional, because the global pamh is never initialized by pam_start(), 
so the other functions in ftpd.c always operate on a NULL pam_handle_t.

Feel free to correct me if I'm speaking from the wrong end of my body.

Eric

-- 
Eric van Gyzen                        Sr. Systems Programmer
http://www.stat.duke.edu/~vangyzen/   ISDS, Duke University



More information about the freebsd-current mailing list