summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-08-23 22:42:15 -0600
committerEduardo Chappa <chappa@washington.edu>2021-08-23 22:42:15 -0600
commitd2ae2bad36529e3381a642d85947d1fd00fc3ffc (patch)
tree5a13637688991250d9d19ee6c3c1d1715527dc71 /imap/src/osdep/unix
parentcfdebdd33ae23f41a3eb786c33d993452664333d (diff)
downloadalpine-d2ae2bad36529e3381a642d85947d1fd00fc3ffc.tar.xz
* Crash due to incorrect freeing of memory, introduced in commit
8961761e0b3c7b3cc11a00f6ac6ebf7a29bc5a10
Diffstat (limited to 'imap/src/osdep/unix')
-rw-r--r--imap/src/osdep/unix/ssl_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index 9d0124ff..eb26ec07 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -564,6 +564,7 @@ static char *ssl_validate_cert (X509 *cert,char *host)
/* host name matches pattern? */
ret = ssl_compare_hostnames (host,s) ? NIL :
"Server name does not match certificate";
+ ext = NIL;
/* if mismatch, see if in extensions */
if (ret && (ext = X509_get_ext_d2i (cert,NID_subject_alt_name,NIL,NIL)) &&
(n = sk_GENERAL_NAME_num (ext)))