From: Timo Sirainen Date: Tue, 7 Jun 2016 00:04:32 +0000 (+0300) Subject: lib-lda: Don't assert-crash if home directory isn't set. X-Git-Tag: 2.2.25.rc1~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a5eb0c4c0c0a1a1491a27e0cb5d88f96c1cb0e8;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: Don't assert-crash if home directory isn't set. --- diff --git a/src/lib-lda/duplicate.c b/src/lib-lda/duplicate.c index 65040c408e..609cf32fbf 100644 --- a/src/lib-lda/duplicate.c +++ b/src/lib-lda/duplicate.c @@ -343,7 +343,8 @@ struct duplicate_context *duplicate_init(struct mail_user *user) } ctx = i_new(struct duplicate_context, 1); - ctx->path = i_strconcat(home, "/"DUPLICATE_FNAME, NULL); + ctx->path = home == NULL ? NULL : + i_strconcat(home, "/"DUPLICATE_FNAME, NULL); ctx->dotlock_set = default_duplicate_dotlock_set; mail_set = mail_user_set_get_storage_set(user);