fixed an uninitialized variable in lookupsmbgrpgid() and
[samba.git] / source / lib / util_pwdb.c
index a2e1ac010d258d2987bc2187dc58b45903b0c274..6a37f1bf747935b4565e19546ee40a435ade475f 100644 (file)
@@ -318,7 +318,7 @@ static time_t get_time_from_string(const char *p)
 
 time_t pwdb_get_last_set_time(const char *p)
 {
-       if (*p && StrnCaseCmp(p, "LCT-", 4))
+       if (*p && !StrnCaseCmp(p, "LCT-", 4))
        {
                return get_time_from_string(p + 4);
        }