dovecot-2.0: *-login: If proxying is enabled but no host is give...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 24 23:59:01 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/211853d48eaf
changeset: 9811:211853d48eaf
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 24 16:55:12 2009 -0400
description:
*-login: If proxying is enabled but no host is given, don't crash.
diffstat:
1 file changed, 6 insertions(+)
src/login-common/client-common-auth.c | 6 ++++++
diffs (16 lines):
diff -r 07e966c5e5d3 -r 211853d48eaf src/login-common/client-common-auth.c
--- a/src/login-common/client-common-auth.c Mon Aug 24 16:44:03 2009 -0400
+++ b/src/login-common/client-common-auth.c Mon Aug 24 16:55:12 2009 -0400
@@ -267,6 +267,12 @@ static int proxy_start(struct client *cl
PROXY_FAILURE_MSG);
return -1;
}
+ if (reply->host == NULL || *reply->host == '\0') {
+ client_log_err(client, "proxy: host not given");
+ client_send_line(client, CLIENT_CMD_REPLY_AUTH_FAIL_TEMP,
+ PROXY_FAILURE_MSG);
+ return -1;
+ }
i_assert(client->refcount > 1);
More information about the dovecot-cvs
mailing list