8246407 PAM: Avoid overwriting pam_status in _lookup_by_cert_done()

1 file Authored by fidencio 6 years ago, Committed by lslebodn 6 years ago,
    PAM: Avoid overwriting pam_status in _lookup_by_cert_done()
    
    In case add_pam_cert_response() failed pam_status has to be set to
    PAM_AUTHINFO_UNAVAIL. Although it's done properly in the code,
    pam_status was overwritten just after the if block with PAM_SUCCESS.
    
    The original faulty code was added as part of 32474fa2f0.
    
    Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
    Reviewed-by: Sumit Bose <sbose@redhat.com>