Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
util: make sure to close the authfile before returning success
fixes #136
  • Loading branch information
klali committed Apr 3, 2018
1 parent af53411 commit 0f6ceab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util.c
Expand Up @@ -167,6 +167,8 @@ check_user_token (const char *authfile,
{
if(verbose)
D (debug_file, "Match user/token as %s/%s", username, otp_id);

fclose(opwfile);
return AUTH_FOUND;
}
}
Expand Down

1 comment on commit 0f6ceab

@kbabioch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CVE-2018-9275 has been assigned to this.

Please sign in to comment.