Projects
Kolab:16:Enterprise
cyrus-imapd-3
patch-cyrus-squatter-assert-crash
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File patch-cyrus-squatter-assert-crash of Package cyrus-imapd-3 (Revision 2)
Currently displaying revision
2
,
Show latest
diff --git a/imap/squatter.c b/imap/squatter.c index 6a7accf1b..0c2de4d7a 100644 --- a/imap/squatter.c +++ b/imap/squatter.c @@ -427,8 +427,13 @@ static void expand_mboxnames(strarray_t *sa, int nmboxnames, else { /* Translate any separators in mailboxname */ char *intname = mboxname_from_external(mboxnames[i], &squat_namespace, NULL); - int flags = recursive_flag ? 0 : MBOXTREE_SKIP_CHILDREN; - mboxlist_mboxtree(intname, addmbox, sa, flags); + if (!intname || *intname == '\0') { + fprintf(stderr, "Mailbox %s: %s\n", + mboxnames[i], error_message(IMAP_MAILBOX_BADNAME)); + } else { + int flags = recursive_flag ? 0 : MBOXTREE_SKIP_CHILDREN; + mboxlist_mboxtree(intname, addmbox, sa, flags); + } free(intname); }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.