Add missing fclose() after fopen()

Slip-up from #32
This commit is contained in:
Davide De Rosa 2018-10-21 00:22:36 +02:00
parent e39057bf55
commit 26fc12c2ef
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ int TLSBoxVerifyPeer(int ok, X509_STORE_CTX *ctx) {
X509 *cert = PEM_read_X509(pem, NULL, NULL, NULL);
X509_digest(cert, alg, md, &len);
X509_free(cert);
fclose(pem);
NSCAssert2(len == sizeof(md), @"Unexpected MD5 size (%d != %lu)", len, sizeof(md));
NSMutableString *hex = [[NSMutableString alloc] initWithCapacity:2 * sizeof(md)];