Skip to content

Commit

Permalink
Merge 6be87e7 into b240534
Browse files Browse the repository at this point in the history
  • Loading branch information
kbabioch committed May 22, 2018
2 parents b240534 + 6be87e7 commit 647f1c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pam_yubico.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,9 @@ parse_cfg (int flags, int argc, const char **argv, struct cfg *cfg)
if (file)
{
cfg->debug_file = file;
}
} else {
close(fd);
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ int generate_random(void *buf, int len)

u = fdopen(fd, "r");
if (!u) {
close(fd);
return -1;
}

Expand Down
1 change: 1 addition & 0 deletions ykpamcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ do_add_hmac_chalresp(YK_KEY *yk, uint8_t slot, bool verbose, char *output_dir, u
f = fdopen (fd, "w");
if (! f) {
fprintf (stderr, "fdopen: %s\n", strerror (errno));
close(fd);
goto out;
}

Expand Down

0 comments on commit 647f1c3

Please sign in to comment.