dovecot-2.0: doveadm -A: Crashfix for doveadm server when using ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 3 15:27:30 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/0e1254dcf86b
changeset: 12830:0e1254dcf86b
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 03 15:27:21 2011 +0300
description:
doveadm -A: Crashfix for doveadm server when using commands that print nothing.
diffstat:
src/doveadm/doveadm-print.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 9ae30e5d6935 -r 0e1254dcf86b src/doveadm/doveadm-print.c
--- a/src/doveadm/doveadm-print.c Tue May 31 15:38:03 2011 +0300
+++ b/src/doveadm/doveadm-print.c Fri Jun 03 15:27:21 2011 +0300
@@ -117,8 +117,10 @@
{
struct doveadm_print_header_context *hdr;
- array_foreach_modifiable(&ctx->headers, hdr)
- hdr->sticky = FALSE;
+ if (ctx != NULL) {
+ array_foreach_modifiable(&ctx->headers, hdr)
+ hdr->sticky = FALSE;
+ }
}
void doveadm_print_init(const char *name)
More information about the dovecot-cvs
mailing list