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