core: fix double close on fp.
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
This commit is contained in:
parent
c2ddb08437
commit
93ae1d997b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user