Skip to content
Permalink
Browse files

mboxlist: fix uninitialised memory use where pattern is "Other Users"

  • Loading branch information...
brong committed Aug 31, 2017
1 parent b7677eb commit 6bd33275368edfa71ae117de895488584678ac79
Showing with 1 addition and 1 deletion.
  1. +1 −1 imap/mboxlist.c
@@ -2851,7 +2851,7 @@ static int mboxlist_do_find(struct find_rock *rock, const strarray_t *patterns)
if (len) len--; // trailing separator

if (!strncmp(rock->namespace->prefix[NAMESPACE_USER], commonpat, MIN(len, prefixlen))) {
if (prefixlen < len) {
if (prefixlen <= len) {
/* we match all users */
strlcpy(domainpat+domainlen, "user.", sizeof(domainpat)-domainlen);
}

1 comment on commit 6bd3327

@carnil

This comment has been minimized.

Copy link

commented on 6bd3327 Sep 10, 2017

Please sign in to comment.
You can’t perform that action at this time.