Skip to content

Commit

Permalink
Stop cleanup_ntlm_auth() using auth_state
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 19, 2015
1 parent c1db27b commit de42bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntlm.c
Expand Up @@ -255,7 +255,7 @@ static int ntlm_helper_challenge(struct openconnect_info *vpninfo, struct oc_tex

void cleanup_ntlm_auth(struct openconnect_info *vpninfo)
{
if (vpninfo->auth[AUTH_TYPE_NTLM].state == NTLM_SSO_REQ) {
if (vpninfo->ntlm_helper_fd != -1) {
close(vpninfo->ntlm_helper_fd);
vpninfo->ntlm_helper_fd = -1;
}
Expand Down

0 comments on commit de42bfc

Please sign in to comment.