dovecot-2.0: imap: Fixed a crash with tb-extra-mailbox-sep worka...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 1 19:37:34 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/75611e9088b6
changeset: 12059:75611e9088b6
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 01 17:37:31 2010 +0100
description:
imap: Fixed a crash with tb-extra-mailbox-sep workaround and selecting "ns-prefix/" box.

diffstat:

 src/imap/imap-commands-util.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r eecc2fda78c1 -r 75611e9088b6 src/imap/imap-commands-util.c
--- a/src/imap/imap-commands-util.c	Wed Sep 01 17:32:37 2010 +0100
+++ b/src/imap/imap-commands-util.c	Wed Sep 01 17:37:31 2010 +0100
@@ -49,6 +49,7 @@
 	storage_name_len = strlen(storage_name);
 	if ((cmd->client->set->parsed_workarounds &
 	     		WORKAROUND_TB_EXTRA_MAILBOX_SEP) != 0 &&
+	    storage_name_len > 0 &&
 	    storage_name[storage_name_len-1] == ns->real_sep) {
 		/* drop the extra trailing hierarchy separator */
 		storage_name = t_strndup(storage_name, storage_name_len-1);


More information about the dovecot-cvs mailing list