s3: Put some parentheses around conditionals
authorVolker Lendecke <vl@samba.org>
Mon, 8 Nov 2010 10:55:07 +0000 (11:55 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Nov 2010 12:39:51 +0000 (13:39 +0100)
source3/winbindd/winbindd_cache.c

index 8e4d24c49bb821b76d827afc887a092a040bbe49..c6ef293134518641506dcec16b80f25a66cf721f 100644 (file)
@@ -614,8 +614,8 @@ static bool centry_expired(struct winbindd_domain *domain, const char *keystr, s
        /* if the server is down or the cache entry is not older than the
           current sequence number or it did not timeout then it is OK */
        if (wcache_server_down(domain)
-           || (centry->sequence_number == domain->sequence_number
-               && centry->timeout > time(NULL))) {
+           || ((centry->sequence_number == domain->sequence_number)
+               && (centry->timeout > time(NULL)))) {
                DEBUG(10,("centry_expired: Key %s for domain %s is good.\n",
                        keystr, domain->name ));
                return false;