dovecot-2.2: config: Fixed IPv6 address handling for parsing v1....

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 10 05:24:39 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e009aaf19934
changeset: 14763:e009aaf19934
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 02 08:06:19 2012 +0300
description:
config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings.

diffstat:

 src/config/old-set-parser.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6b08977c4b75 -r e009aaf19934 src/config/old-set-parser.c
--- a/src/config/old-set-parser.c	Fri Jun 29 08:05:08 2012 +0300
+++ b/src/config/old-set-parser.c	Mon Jul 02 08:06:19 2012 +0300
@@ -305,7 +305,7 @@
 			return TRUE;
 		}
 		p = strrchr(value, ':');
-		if (p != NULL) {
+		if (p != NULL && listen_has_port(value)) {
 			obsolete(ctx, "%s=..:port has been replaced by service { inet_listener { port } }", key);
 			value = t_strdup_until(value, p++);
 			if (config_filter_match(&old_section->filter, &imap_filter)) {


More information about the dovecot-cvs mailing list