From: Timo Sirainen Date: Mon, 24 Aug 2015 09:56:07 +0000 (+0300) Subject: lib-storage: mail_user_var_expand_table() may not have returned %{auth_username}... X-Git-Tag: 2.2.19.rc1~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=872876c29ab50b4d3b4aeaac65546f21bfaa71f4;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mail_user_var_expand_table() may not have returned %{auth_username} correctly --- diff --git a/src/lib-storage/mail-user.c b/src/lib-storage/mail-user.c index 18be09ae94..efa38b7755 100644 --- a/src/lib-storage/mail-user.c +++ b/src/lib-storage/mail-user.c @@ -248,7 +248,7 @@ mail_user_var_expand_table(struct mail_user *user) tab[13].value = tab[2].value; } else { tab[11].value = user->auth_user; - tab[12].value = t_strcut(user->auth_user, '@'); + tab[12].value = p_strdup(user->pool, t_strcut(user->auth_user, '@')); tab[13].value = strchr(user->auth_user, '@'); }