Skip to content

Commit

Permalink
core: fix double close on fp.
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
  • Loading branch information
zhangzl2013 committed Mar 13, 2015
1 parent c2ddb08 commit 93ae1d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libfreerdp/core/certificate.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ rdpRsaKey* key_new(const char* keyfile)

fread((void*) buffer, length, 1, fp);
fclose(fp);
fp = NULL;

bio = BIO_new_mem_buf((void*) buffer, length);

Expand Down

0 comments on commit 93ae1d9

Please sign in to comment.