diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2021-08-27 08:59:06 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2021-08-27 08:59:06 +0300 |
commit | 6615773212171521bc46dac661f4d5414fe379f9 (patch) | |
tree | 7fbdb93e6ffc28819883b9f01f3acf4e6a2ca543 | |
parent | cb4c4e4f9dd6366ac61b12e2dada184448bdb3c6 (diff) | |
download | mailutils-6615773212171521bc46dac661f4d5414fe379f9.tar.gz mailutils-6615773212171521bc46dac661f4d5414fe379f9.tar.bz2 |
Bugfix
* imap4d/io.c (imap4d_init_tls_server): Fix inverted condition.
* pop3d/extra.c (pop3d_init_tls_server): Likewise.
-rw-r--r-- | imap4d/io.c | 2 | ||||
-rw-r--r-- | pop3d/extra.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/imap4d/io.c b/imap4d/io.c index 72cea2685..c0f332e7e 100644 --- a/imap4d/io.c +++ b/imap4d/io.c @@ -129,7 +129,7 @@ imap4d_init_tls_server (struct mu_tls_config *tls_conf) int rc; rc = mu_starttls (&iostream, tls_conf, MU_TLS_SERVER); - if (rc) + if (rc == 0) log_cipher (iostream); else { diff --git a/pop3d/extra.c b/pop3d/extra.c index 526364a8d..5f8c6ac93 100644 --- a/pop3d/extra.c +++ b/pop3d/extra.c @@ -236,7 +236,7 @@ pop3d_init_tls_server (struct mu_tls_config *tls_conf) int rc; rc = mu_starttls (&iostream, tls_conf, MU_TLS_SERVER); - if (rc) + if (rc == 0) log_cipher (iostream); else { |