From: Volker Lendecke Date: Wed, 21 Apr 2021 19:30:30 +0000 (+0200) Subject: auth3: if (ret==False) just looks weird X-Git-Tag: tevent-0.11.0~1022 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e034e8f8fcd5e63dc4afe5a210ccea347bfa523;p=thirdparty%2Fsamba.git auth3: if (ret==False) just looks weird Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c index cfd32c5f5ba..b9563c958a9 100644 --- a/source3/auth/check_samsec.c +++ b/source3/auth/check_samsec.c @@ -394,7 +394,7 @@ NTSTATUS check_sam_security(const DATA_BLOB *challenge, ret = pdb_getsampwnam(sampass, user_info->mapped.account_name); unbecome_root(); - if (ret == False) { + if (!ret) { DEBUG(3,("check_sam_security: Couldn't find user '%s' in " "passdb.\n", user_info->mapped.account_name)); TALLOC_FREE(sampass);