summaryrefslogtreecommitdiff
path: root/imap/src/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'imap/src/osdep')
-rw-r--r--imap/src/osdep/nt/ssl_libressl.c2
-rw-r--r--imap/src/osdep/unix/ssl_unix.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/imap/src/osdep/nt/ssl_libressl.c b/imap/src/osdep/nt/ssl_libressl.c
index 04dfb36e..da466821 100644
--- a/imap/src/osdep/nt/ssl_libressl.c
+++ b/imap/src/osdep/nt/ssl_libressl.c
@@ -518,7 +518,7 @@ static char *ssl_validate_cert (X509 *cert,char *host)
ret = "No name in certificate";
else if ((s = strstr (cert->name,"/CN=")) != NIL) {
m++; /* count that we tried this method */
- if (t = strchr (s += 4,'/')) *t = '\0';
+ if ((t = strchr (s += 4,'/')) != NIL) *t = '\0';
/* host name matches pattern? */
ret = ssl_compare_hostnames (host,s) ? NIL :
"Server name does not match certificate";
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index e9243769..601888ec 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -535,7 +535,7 @@ static char *ssl_validate_cert (X509 *cert,char *host)
ret = "No name in certificate";
else if ((s = strstr (cert->name,"/CN=")) != NIL) {
m++; /* count that we tried this method */
- if (t = strchr (s += 4,'/')) *t = '\0';
+ if ((t = strchr (s += 4,'/')) != NIL) *t = '\0';
/* host name matches pattern? */
ret = ssl_compare_hostnames (host,s) ? NIL :
"Server name does not match certificate";