projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ddb08
)
core: fix double close on fp.
author
Zhang Zhaolong
<zhangzl2013@126.com>
Fri, 13 Mar 2015 03:21:12 +0000
(11:21 +0800)
committer
Zhang Zhaolong
<zhangzl2013@126.com>
Fri, 13 Mar 2015 03:21:12 +0000
(11:21 +0800)
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
libfreerdp/core/certificate.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/certificate.c
b/libfreerdp/core/certificate.c
index
5e62396
..
a854635
100644
(file)
--- a/
libfreerdp/core/certificate.c
+++ b/
libfreerdp/core/certificate.c
@@
-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);