changeset 18991:39710cec820b

lib-storage: mail_user_var_expand_table() may not have returned %{auth_username} correctly
author Timo Sirainen <tss@iki.fi>
date Mon, 24 Aug 2015 12:56:07 +0300
parents cd2c95d82d4c
children cf620b80c380
files src/lib-storage/mail-user.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-user.c	Mon Aug 24 12:14:40 2015 +0300
+++ b/src/lib-storage/mail-user.c	Mon Aug 24 12:56:07 2015 +0300
@@ -248,7 +248,7 @@
 		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, '@');
 	}