dovecot-2.0: master: Fail if service's vsz_limit is less than 1 kB

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 16 21:32:58 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/f78260c108b0
changeset: 12430:f78260c108b0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 16 19:32:51 2010 +0000
description:
master: Fail if service's vsz_limit is less than 1 kB

diffstat:

 src/master/master-settings.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r ddd929c68c0f -r f78260c108b0 src/master/master-settings.c
--- a/src/master/master-settings.c	Tue Nov 16 19:32:00 2010 +0000
+++ b/src/master/master-settings.c	Tue Nov 16 19:32:51 2010 +0000
@@ -496,6 +496,11 @@
 				service->name);
 			return FALSE;
 		}
+		if (service->vsz_limit < 1024) {
+			*error_r = t_strdup_printf("service(%s): "
+				"vsz_limit is too low", service->name);
+			return FALSE;
+		}
 
 #ifdef CONFIG_BINARY
 		default_service =


More information about the dovecot-cvs mailing list