From 6123099bb56572bd374313fc47f7744177ff4baa Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 16 Dec 2008 15:37:16 +0200 Subject: [PATCH] deliver: Don't break if username gets changed by userdb lookup. --HG-- branch : HEAD --- src/deliver/deliver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deliver/deliver.c b/src/deliver/deliver.c index 60d0cbccab..806953ed02 100644 --- a/src/deliver/deliver.c +++ b/src/deliver/deliver.c @@ -995,6 +995,9 @@ int main(int argc, char *argv[]) i_set_failure_prefix(t_strdup_printf("deliver(%s): ", user)); } + /* if user was changed, it was allocated from userdb_pool + which we'll free soon. */ + user = t_strdup(user); } expand_envs(user); -- 2.47.3