diff options
author | Volker Lendecke <vl@samba.org> | 2018-04-11 08:26:33 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-04-11 19:07:24 +0200 |
commit | 7a9df7966031f3c364454e1497168e3bc24ad4d9 (patch) | |
tree | 9636396695865fce1a2dd11fdfc4e943ddee7c56 /auth | |
parent | 56a8739e228fd661e3c648a7a316f7967a55e81c (diff) | |
download | samba-7a9df7966031f3c364454e1497168e3bc24ad4d9.tar.gz |
credentials: Fix line length
... 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>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/credentials/credentials_secrets.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c index 58a87ac9fdb..963024820f3 100644 --- a/auth/credentials/credentials_secrets.c +++ b/auth/credentials/credentials_secrets.c @@ -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; } |