dovecot-1.1: If SSL function fails and there are no errors, retu...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 7 22:44:49 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/bec3cd8e8151
changeset: 7508:bec3cd8e8151
user: Timo Sirainen <tss at iki.fi>
date: Wed May 07 22:44:45 2008 +0300
description:
If SSL function fails and there are no errors, return "Unknown error"
instead of "Success" as the reason.
diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
src/login-common/ssl-proxy-openssl.c | 7 +++++--
diffs (17 lines):
diff -r b776f2b8d827 -r bec3cd8e8151 src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c Tue May 06 02:52:51 2008 +0300
+++ b/src/login-common/ssl-proxy-openssl.c Wed May 07 22:44:45 2008 +0300
@@ -309,8 +309,11 @@ static const char *ssl_last_error(void)
size_t err_size = 256;
err = ERR_get_error();
- if (err == 0)
- return strerror(errno);
+ if (err == 0) {
+ if (errno != 0)
+ return strerror(errno);
+ return "Unknown error";
+ }
buf = t_malloc(err_size);
buf[err_size-1] = '\0';
More information about the dovecot-cvs
mailing list