diff src/auth/auth-settings.c @ 12089:52e197994a55

Don't fail with auth_cache_size=0
author Timo Sirainen <tss@iki.fi>
date Wed, 08 Sep 2010 14:58:31 +0100
parents 27d235096cca
children ce75971127a2
line wrap: on
line diff
--- a/src/auth/auth-settings.c	Wed Sep 08 14:56:15 2010 +0100
+++ b/src/auth/auth-settings.c	Wed Sep 08 14:58:31 2010 +0100
@@ -266,7 +266,7 @@
 	if (set->debug)
 		set->verbose = TRUE;
 
-	if (set->cache_size < 1024) {
+	if (set->cache_size > 0 && set->cache_size < 1024) {
 		/* probably a configuration error.
 		   older versions used megabyte numbers */
 		*error_r = t_strdup_printf("auth_cache_size value is too small "