projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fclose -> m_fclose
[apps/madmutt.git]
/
lib-sys
/
mutt_ssl.c
diff --git
a/lib-sys/mutt_ssl.c
b/lib-sys/mutt_ssl.c
index
9d658d4
..
4c7137a
100644
(file)
--- a/
lib-sys/mutt_ssl.c
+++ b/
lib-sys/mutt_ssl.c
@@
-510,7
+510,7
@@
static int check_certificate_by_digest (X509 * peercert)
return 0;
if (!X509_digest (peercert, EVP_sha1 (), peermd, &peermdlen)) {
return 0;
if (!X509_digest (peercert, EVP_sha1 (), peermd, &peermdlen)) {
-
fclose (
fp);
+
m_fclose(&
fp);
return 0;
}
return 0;
}
@@
-520,7
+520,7
@@
static int check_certificate_by_digest (X509 * peercert)
break;
}
X509_free (cert);
break;
}
X509_free (cert);
-
fclose (
fp);
+
m_fclose(&
fp);
return pass;
}
return pass;
}
@@
-624,7
+624,7
@@
static int ssl_check_certificate (sslsockdata * data)
if ((fp = fopen (SslCertFile, "a"))) {
if (PEM_write_X509 (fp, data->cert))
done = 1;
if ((fp = fopen (SslCertFile, "a"))) {
if (PEM_write_X509 (fp, data->cert))
done = 1;
-
fclose (
fp);
+
m_fclose(&
fp);
}
if (!done) {
mutt_error (_("Warning: Couldn't save certificate"));
}
if (!done) {
mutt_error (_("Warning: Couldn't save certificate"));