From d2ae2bad36529e3381a642d85947d1fd00fc3ffc Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Mon, 23 Aug 2021 22:42:15 -0600 Subject: * Crash due to incorrect freeing of memory, introduced in commit 8961761e0b3c7b3cc11a00f6ac6ebf7a29bc5a10 --- imap/src/osdep/unix/ssl_unix.c | 1 + pith/pine.hlp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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))) diff --git a/pith/pine.hlp b/pith/pine.hlp index b9627a04..4d79260b 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 580 2021-08-23 21:44:27 +Alpine Commit 581 2021-08-23 22:42:05 ============= h_news ================= -- cgit v1.2.3-70-g09d2