1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib:crypto: Explicitly check for zero

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-01-08 09:48:44 +13:00 committed by Andrew Bartlett
parent cac31aac34
commit 332522d779

View File

@ -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;
}