dovecot-2.2: lib-imap: test_imap_url didn't compare port numbers

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 3 09:46:32 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/636b10a03e95
changeset: 17570:636b10a03e95
user:      Phil Carmody <phil at dovecot.fi>
date:      Thu Jul 03 12:42:11 2014 +0300
description:
lib-imap: test_imap_url didn't compare port numbers
It only compare them when they were unset, and defaulting both to 0.

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/lib-imap/test-imap-url.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6fcf8199b079 -r 636b10a03e95 src/lib-imap/test-imap-url.c
--- a/src/lib-imap/test-imap-url.c	Thu Jul 03 11:37:07 2014 +0300
+++ b/src/lib-imap/test-imap-url.c	Thu Jul 03 12:42:11 2014 +0300
@@ -650,7 +650,7 @@
 				test_out(t_strdup_printf("url->auth_type = %s", urlp->auth_type),
 					strcmp(urlp->auth_type, urlt->auth_type) == 0);
 			}
-			if (urlp->have_port) {
+			if (!urlp->have_port) {
 				test_out("url->port = (unspecified)",
 					urlp->have_port == urlt->have_port);
 			} else {


More information about the dovecot-cvs mailing list