Fix accidental leak in ssl message output.
This commit is contained in:
@@ -331,14 +331,14 @@ static int Tls_save_certificate_home(X509 * cert)
|
||||
int ret = 1;
|
||||
|
||||
/* Attempt to create .flenser/certs blindly - check later */
|
||||
snprintf(buf, 4096, "%s/.flenser/", dGethomedir());
|
||||
snprintf(buf, 4096, "%s/.flenser/", dGethomedir_string().value_or("").c_str());
|
||||
mkdir(buf, 01777);
|
||||
snprintf(buf, 4096, "%s/.flenser/certs/", dGethomedir());
|
||||
snprintf(buf, 4096, "%s/.flenser/certs/", dGethomedir_string().value_or("").c_str());
|
||||
mkdir(buf, 01777);
|
||||
|
||||
do {
|
||||
snprintf(buf, 4096, "%s/.flenser/certs/%lx.%u",
|
||||
dGethomedir(), X509_subject_name_hash(cert), i);
|
||||
dGethomedir_string().value_or("").c_str(), X509_subject_name_hash(cert), i);
|
||||
|
||||
fp=fopen(buf, "r");
|
||||
if (fp == NULL){
|
||||
|
||||
Reference in New Issue
Block a user