Commit cbf3d32f authored by Pythagoras Watson's avatar Pythagoras Watson Committed by Morris Jette
Browse files

Make PAM allocation and deallocation cleaner and safer

In pam_setup, correct comments for typos and to match the code.  On failure,
properly deallocate the PAM resources and ensure the PAM handle is null so as
to make calling pam_finish always safe.

In pam_finish, always try to deallocate all the PAM resources.  Also, ensure
the PAM handle is null so as to make calling pam_finish always safe.  This
allows for calling pam_finish multiple times without error.
parent 5c34d8d4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment