diff options
Diffstat (limited to 'source3/passdb/login_cache.c')
-rw-r--r-- | source3/passdb/login_cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c index 1785a4dacac..a53fe5b24f7 100644 --- a/source3/passdb/login_cache.c +++ b/source3/passdb/login_cache.c @@ -20,6 +20,7 @@ #include "includes.h" #include "system/filesys.h" #include "passdb.h" +#include "util_tdb.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_PASSDB @@ -58,10 +59,10 @@ bool login_cache_init(void) bool login_cache_shutdown(void) { - /* tdb_close routine returns -1 on error */ + /* tdb_close routine returns non-zero on error */ if (!cache) return False; DEBUG(5, ("Closing cache file\n")); - return tdb_close(cache) != -1; + return tdb_close(cache) == 0; } /* if we can't read the cache, oh well, no need to return anything */ |