Re: libexec/ftpd/ftpd.c and pam

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Wed, 28 Jan 2004 13:48:39 +0100
Eric van Gyzen <vangyzen_at_stat.duke.edu> writes:
> 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.

you're right...  though the only impact is that pam_open_session()
never gets called.  Could you please file a PR and Cc: me?

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Wed Jan 28 2004 - 03:48:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:40 UTC