Mercurial > dovecot > core-2.2
changeset 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 | 77075d202fc1 |
children | e392f5f65cd8 |
files | src/auth/auth-settings.c src/config/old-set-parser.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 "
--- a/src/config/old-set-parser.c Wed Sep 08 14:56:15 2010 +0100 +++ b/src/config/old-set-parser.c Wed Sep 08 14:58:31 2010 +0100 @@ -409,7 +409,7 @@ return TRUE; } if (strcmp(key, "auth_cache_size") == 0 && - str_to_uoff(value, &size) == 0 && size < 1024) { + str_to_uoff(value, &size) == 0 && size > 0 && size < 1024) { obsolete(ctx, "auth_cache_size value no longer defaults to " "megabytes. Use %sM", value); config_apply_line(ctx, key,