Fix coredumps on null passwords in pam and ldap auth.
* libmu_auth/pam.c (mu_pam_service): Initialize to package name. (mu_pam_conv): Raise PAM_AUTHTOK_RECOVER_ERR, if password is NULL. Fix memory leak on errors. (mu_authenticate_pam): Fix return value. * libmu_auth/ldap.c (mu_ldap_authenticate): Prevent coredump on empty password.
Showing
2 changed files
with
64 additions
and
26 deletions
-
Please register or sign in to post a comment