dovecot-2.2: lib-http: Fixed assert-crash when host had multiple...
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 19 19:55:49 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/8ee30aa47930
changeset: 16369:8ee30aa47930
user: Timo Sirainen <tss at iki.fi>
date: Sun May 19 19:55:41 2013 +0300
description:
lib-http: Fixed assert-crash when host had multiple IPs and first one had failed.
diffstat:
src/lib-http/http-client-host.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dd0cf0bfdb0c -r 8ee30aa47930 src/lib-http/http-client-host.c
--- a/src/lib-http/http-client-host.c Sun May 19 19:51:34 2013 +0300
+++ b/src/lib-http/http-client-host.c Sun May 19 19:55:41 2013 +0300
@@ -305,7 +305,7 @@
/* make a connection if we have an IP already */
if (host->ips_count == 0)
return;
- i_assert(hport->ips_connect_idx == 0);
+ i_assert(hport->ips_connect_idx < host->ips_count);
http_client_host_connection_setup(host, hport);
}
More information about the dovecot-cvs
mailing list