]> granicus.if.org Git - ejabberd/commitdiff
extauth_cache can have value 0
authorBadlop <badlop@process-one.net>
Mon, 5 May 2014 11:13:35 +0000 (13:13 +0200)
committerBadlop <badlop@process-one.net>
Mon, 5 May 2014 11:13:35 +0000 (13:13 +0200)
src/ejabberd_auth_external.erl

index 9ae6c90810195b61a1ab7a4121881c6a00385273..17944b65036a63799f5ce443f8e6069f2cd12f4a 100644 (file)
@@ -173,7 +173,7 @@ get_cache_option(Host) ->
     case ejabberd_config:get_option(
            {extauth_cache, Host},
            fun(false) -> undefined;
-              (I) when is_integer(I), I > 0 -> I
+              (I) when is_integer(I), I >= 0 -> I
            end) of
         undefined -> false;
         CacheTime -> {true, CacheTime}