]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: shared driver - Remove copying the child storage's class_flags
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 19 Feb 2018 11:22:02 +0000 (13:22 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 16 Apr 2018 10:03:29 +0000 (13:03 +0300)
commit8d5faabfdcfaad5005e31c11e3d5880463a5ea30
tree5b2ba6e7643dee5b0182febfa9db180f0e16e276
parent12c4e52b5566ffe4570c60f16ddd57928b08c08c
lib-storage: shared driver - Remove copying the child storage's class_flags

The shared storage root itself doesn't have any storage, so it shouldn't
need to copy the child storage's class_flags either.

This fixes a crash when shared namespace was created with mdbox storage, and
another mdbox namespace was created afterwards. This had
MAIL_STORAGE_CLASS_FLAG_UNIQUE_ROOT set, but its unique_root_dir is NULL,
which caused a crash in mail_storage_match_class().
src/lib-storage/index/shared/shared-storage.c