Mercurial > dovecot > core-2.2
changeset 11568:81e496a5b412 HEAD
doveadm: Another -A crashfix for mail commands that don't print anything.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 17 Jun 2010 16:00:01 +0100 |
parents | c9b793187ca6 |
children | 467ca06a7dbe |
files | src/doveadm/doveadm-print.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-print.c Thu Jun 17 15:40:43 2010 +0100 +++ b/src/doveadm/doveadm-print.c Thu Jun 17 16:00:01 2010 +0100 @@ -87,6 +87,11 @@ { struct doveadm_print_header_context *hdr; + if (ctx == NULL) { + /* command doesn't really print anything */ + return; + } + array_foreach_modifiable(&ctx->headers, hdr) { if (strcmp(hdr->key, key) == 0) { i_free(hdr->sticky_value);