dovecot-1.2: deliver: Don't break if username gets changed by us...

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 16 15:37:27 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/4c2ff35ba88d
changeset: 8563:4c2ff35ba88d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 16 15:37:16 2008 +0200
description:
deliver: Don't break if username gets changed by userdb lookup.

diffstat:

1 file changed, 3 insertions(+)
src/deliver/deliver.c |    3 +++

diffs (13 lines):

diff -r 6168f782c51a -r 4c2ff35ba88d src/deliver/deliver.c
--- a/src/deliver/deliver.c	Tue Dec 16 15:37:03 2008 +0200
+++ b/src/deliver/deliver.c	Tue Dec 16 15:37:16 2008 +0200
@@ -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);


More information about the dovecot-cvs mailing list