auth: Unconditionally set pamh to NULL
Don't do it only in the successful case since the handle is
not useful afterwards and later calls might otherwise reuse the handle.
Also don't use the handle in the error path after pam_end.
Signed-off-by:
Guido Günther <guido.gunther@puri.sm>
Showing
Please register or sign in to comment