dovecot-2.2: lib-lda: Fixed crash in mail_deliver_get_log_var_ex...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 3 13:49:59 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/06505210b25d
changeset: 18819:06505210b25d
user: Teemu Huovila <teemu.huovila at dovecot.fi>
date: Wed Jun 03 16:47:25 2015 +0300
description:
lib-lda: Fixed crash in mail_deliver_get_log_var_expand_table().
Discovered by clang static analyzer. This caused crashes with older versions
of Pigeonhole.
diffstat:
src/lib-lda/mail-deliver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c909977ec1a1 -r 06505210b25d src/lib-lda/mail-deliver.c
--- a/src/lib-lda/mail-deliver.c Wed Jun 03 01:04:49 2015 +0300
+++ b/src/lib-lda/mail-deliver.c Wed Jun 03 16:47:25 2015 +0300
@@ -97,8 +97,8 @@
if (ctx != NULL) {
mail_deliver_log_var_expand_table_update_times(ctx, tab);
tab[8].value = dec2str(ctx->session_time_msecs);
+ tab[9].value = ctx->dest_addr;
}
- tab[9].value = ctx->dest_addr;
return tab;
}
More information about the dovecot-cvs
mailing list