dovecot-2.2: lib-dns: Fixed busy looping when dns-client disconn...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 22 19:12:49 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/72b3b8c86222
changeset: 16863:72b3b8c86222
user: Timo Sirainen <tss at iki.fi>
date: Tue Oct 22 19:12:38 2013 +0300
description:
lib-dns: Fixed busy looping when dns-client disconnected.
diffstat:
src/lib-dns/dns-lookup.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (15 lines):
diff -r d23c8e97dc69 -r 72b3b8c86222 src/lib-dns/dns-lookup.c
--- a/src/lib-dns/dns-lookup.c Tue Oct 22 15:36:07 2013 +0300
+++ b/src/lib-dns/dns-lookup.c Tue Oct 22 19:12:38 2013 +0300
@@ -159,10 +159,8 @@
return;
}
}
- if (ret == 0)
- return;
- if (lookup->result.error != NULL) {
+ if (ret != 0 && lookup->result.error != NULL) {
/* already got the error */
} else if (client->input->stream_errno != 0) {
dns_client_disconnect(client, t_strdup_printf(
More information about the dovecot-cvs
mailing list