dovecot-2.0: STATUS: Give an error with empty status list.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 12 18:17:42 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/00771a8ab6fb
changeset: 11287:00771a8ab6fb
user: Timo Sirainen <tss at iki.fi>
date: Wed May 12 17:17:39 2010 +0200
description:
STATUS: Give an error with empty status list.
diffstat:
src/imap/imap-status.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r bc0b336efef7 -r 00771a8ab6fb src/imap/imap-status.c
--- a/src/imap/imap-status.c Wed May 12 16:45:40 2010 +0200
+++ b/src/imap/imap-status.c Wed May 12 17:17:39 2010 +0200
@@ -13,6 +13,11 @@
const char *item;
enum mailbox_status_items items;
+ if (IMAP_ARG_IS_EOL(args)) {
+ client_send_command_error(cmd, "Empty status list.");
+ return -1;
+ }
+
memset(items_r, 0, sizeof(*items_r));
items = 0;
for (; !IMAP_ARG_IS_EOL(args); args++) {
More information about the dovecot-cvs
mailing list