dovecot-2.1: quota-status: If quota_status_* settings are set, d...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 15 14:28:24 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/30c257f2504a
changeset: 14966:30c257f2504a
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 15 14:28:04 2013 +0300
description:
quota-status: If quota_status_* settings are set, don't free them before using.

diffstat:

 src/plugins/quota/quota-status.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 04451ba65501 -r 30c257f2504a src/plugins/quota/quota-status.c
--- a/src/plugins/quota/quota-status.c	Sat May 11 17:08:12 2013 +0200
+++ b/src/plugins/quota/quota-status.c	Wed May 15 14:28:04 2013 +0300
@@ -113,6 +113,7 @@
 			if (value == NULL)
 				value = t_strdup_printf("554 5.2.2 %s\n\n", error);
 		}
+		value = t_strdup(value); /* user's pool is being freed */
 		mail_user_unref(&user);
 		mail_storage_service_user_free(&service_user);
 	}


More information about the dovecot-cvs mailing list