mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
only fclose open pointer
This commit is contained in:
parent
69c3c7d8e2
commit
437eedfadf
@ -260,15 +260,13 @@ SWITCH_DECLARE(int) switch_core_gen_certs(const char *prefix)
|
||||
} else {
|
||||
if ((fp = fopen(pvt, "w"))) {
|
||||
PEM_write_PrivateKey(fp, pkey, NULL, NULL, 0, NULL, NULL);
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
if ((fp = fopen(rsa, "w"))) {
|
||||
PEM_write_X509(fp, x509);
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
X509_free(x509);
|
||||
|
Loading…
x
Reference in New Issue
Block a user