dovecot-2.2: lmtp: Fixed assert-crash on anvil lookup failures.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 10 17:32:03 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/457daf0bfbfa
changeset: 18837:457daf0bfbfa
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 10 20:29:35 2015 +0300
description:
lmtp: Fixed assert-crash on anvil lookup failures.
If anvil_client_query() fails, it immediately calls the callback and returns
NULL. So we need to increase anvil_queries even before calling
anvil_client_query()
diffstat:
src/lmtp/commands.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 3db134293be8 -r 457daf0bfbfa src/lmtp/commands.c
--- a/src/lmtp/commands.c Wed Jun 10 19:50:29 2015 +0300
+++ b/src/lmtp/commands.c Wed Jun 10 20:29:35 2015 +0300
@@ -693,10 +693,9 @@
master_service_get_name(master_service),
"/", str_tabescape(username), NULL);
lmtp_anvil_init();
+ client->state.anvil_queries++;
rcpt->anvil_query = anvil_client_query(anvil, query,
rcpt_anvil_lookup_callback, rcpt);
- if (rcpt->anvil_query != NULL)
- client->state.anvil_queries++;
}
return 0;
}
More information about the dovecot-cvs
mailing list