Skip to content

Commit

Permalink
mboxlist: don't crash if no userid
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Jun 4, 2024
1 parent dc1a449 commit 7adc241
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imap/mboxlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -3167,6 +3167,7 @@ static int _usergroup_add(void *rock,

EXPORTED int mboxlist_lookup_usergroups(const char *item, strarray_t *dest)
{
if (!item) return 0; // if no userid, no groups can possibly match
init_internal();
struct buf prefix = BUF_INITIALIZER;
buf_setcstr(&prefix, "UG");
Expand Down

0 comments on commit 7adc241

Please sign in to comment.