Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Merged PR 7365: Remove redundant LsaOpenServer
Browse files Browse the repository at this point in the history
Remove redundant LsaOpenServer

Related work items: #155803
  • Loading branch information
RBoulton-BT committed Aug 9, 2018
1 parent cae0c43 commit 50eb066
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lsass/interop/auth/pam/pam-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,11 @@ DWORD sm_prompt(pam_handle_t* pamh,
{
LSA_LOG_PAM_DEBUG("Checking for smart card");

dwError = LsaOpenServer(&hLsaConnection);

if (dwError == LW_ERROR_SUCCESS)
{
dwError = LsaFindUserByName(
hLsaConnection,
ctx->pszLoginId,
dwUserInfoLevel,
(PVOID*) & pTokenUserInfo);
}
dwError = LsaFindUserByName(
hLsaConnection,
ctx->pszLoginId,
dwUserInfoLevel,
(PVOID*) & pTokenUserInfo);

if (dwError == LW_ERROR_SUCCESS)
{
Expand Down

0 comments on commit 50eb066

Please sign in to comment.