Commit 508375e5 authored by Guido Gunther's avatar Guido Gunther

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 Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 90b2c0dd
Pipeline #36396 passed with stages
in 10 minutes and 4 seconds