]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mail_user_var_expand_table() may not have returned %{auth_username}...
authorTimo Sirainen <tss@iki.fi>
Mon, 24 Aug 2015 09:56:07 +0000 (12:56 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 24 Aug 2015 09:56:07 +0000 (12:56 +0300)
src/lib-storage/mail-user.c

index 18be09ae94c561905336973b38abd03b6c2959b2..efa38b77556f00c4d275537291d64ead873be2f9 100644 (file)
@@ -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, '@');
        }