cyrus-imapd-2.4.17-statuscache.diff 400 B

123456789101112
  1. --- imap/statuscache_db.c.orig 2012-12-01 20:57:54.000000000 +0100
  2. +++ imap/statuscache_db.c 2013-10-18 17:09:42.110915989 +0200
  3. @@ -152,7 +152,7 @@
  4. len = strlcpy(key, mailboxname, sizeof(key));
  5. key[len++] = '%';
  6. key[len++] = '%';
  7. - len += strlcpy(key + len, userid, sizeof(key) - len);
  8. + if (userid) len += strlcpy(key + len, userid, sizeof(key) - len);
  9. *keylen = len;