From 00d2d7fbcd8153dfe453c1e210bde643a2dc3193 Mon Sep 17 00:00:00 2001 From: Rool Paap Date: Mon, 7 Nov 2022 15:10:58 +0100 Subject: [PATCH] Fixed a crash in iOS 16.1 where we freed to much memory --- Sources/Transport/OpenSSL/OpenSSL.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Transport/OpenSSL/OpenSSL.m b/Sources/Transport/OpenSSL/OpenSSL.m index 143ce4933..5d37186f1 100644 --- a/Sources/Transport/OpenSSL/OpenSSL.m +++ b/Sources/Transport/OpenSSL/OpenSSL.m @@ -394,8 +394,8 @@ - (BOOL)validatePKCS7Signature:(NSData *)signatureData BIO_free(signatureBlob); signatureBlob = NULL; BIO_free(contentBlob); contentBlob = NULL; BIO_free(certificateBlob); certificateBlob = NULL; - sk_X509_pop_free(signers, X509_free); signers = NULL; - X509_free(signingCert); signingCert = NULL; + signers = NULL; + signingCert = NULL; return result; }