credentials: Fix line length
authorVolker Lendecke <vl@samba.org>
Wed, 11 Apr 2018 06:26:33 +0000 (08:26 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 11 Apr 2018 17:07:24 +0000 (19:07 +0200)
... just because I'll modify that line in the next commit

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
auth/credentials/credentials_secrets.c

index 58a87ac9fdb9d21f8fca771fc216f0876a39b464..963024820f37ce72ba7b477e2d44d9c28f33ccdc 100644 (file)
@@ -120,7 +120,9 @@ static NTSTATUS cli_credentials_set_secrets_lct(struct cli_credentials *cred,
                return NT_STATUS_NOT_FOUND;
        }
 
-       if (lct == secrets_tdb_last_change_time && secrets_tdb_password && strcmp(password, secrets_tdb_password) != 0) {
+       if ((lct == secrets_tdb_last_change_time) &&
+           (secrets_tdb_password != NULL) &&
+           (strcmp(password, secrets_tdb_password) != 0)) {
                talloc_free(mem_ctx);
                return NT_STATUS_NOT_FOUND;
        }