From: Jo Sutton Date: Sun, 7 Jan 2024 20:48:44 +0000 (+1300) Subject: lib:crypto: Explicitly check for zero X-Git-Tag: tdb-1.4.11~1754 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=332522d7798e5c73e77f18ac7e0f05aae749d070;p=thirdparty%2Fsamba.git lib:crypto: Explicitly check for zero Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/crypto/gkdi.c b/lib/crypto/gkdi.c index f7982491e10..a39a32add82 100644 --- a/lib/crypto/gkdi.c +++ b/lib/crypto/gkdi.c @@ -71,7 +71,7 @@ static NTSTATUS make_gkdi_context_security_descriptor( enum ndr_err_code ndr_err; struct GkdiDerivationCtx ctx_with_sd = *ctx; - if (ctx_with_sd.target_security_descriptor.length) { + if (ctx_with_sd.target_security_descriptor.length != 0) { return NT_STATUS_INVALID_PARAMETER; }