dovecot-2.2: lib-ssl-iostream: Don't ignore errors on SSL certif...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 3 10:03:26 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/2f823d983832
changeset: 19444:2f823d983832
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 03 11:41:58 2015 +0200
description:
lib-ssl-iostream: Don't ignore errors on SSL certificate loading.
Patch by Sebastiaan Hoogeveen.

diffstat:

 src/lib-ssl-iostream/iostream-openssl-context.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 25d63d9c7f5a -r 2f823d983832 src/lib-ssl-iostream/iostream-openssl-context.c
--- a/src/lib-ssl-iostream/iostream-openssl-context.c	Tue Dec 01 17:31:08 2015 +0200
+++ b/src/lib-ssl-iostream/iostream-openssl-context.c	Thu Dec 03 11:41:58 2015 +0200
@@ -379,7 +379,7 @@
 	}
 
 	if (set->cert != NULL &&
-	    ssl_ctx_use_certificate_chain(ctx->ssl_ctx, set->cert) < 0) {
+	    ssl_ctx_use_certificate_chain(ctx->ssl_ctx, set->cert) == 0) {
 		*error_r = t_strdup_printf("Can't load SSL certificate: %s",
 			ssl_iostream_get_use_certificate_error(set->cert));
 		return -1;


More information about the dovecot-cvs mailing list