mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +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:
parent
cac31aac34
commit
332522d779
@ -71,7 +71,7 @@ static NTSTATUS make_gkdi_context_security_descriptor(
|
|||||||
enum ndr_err_code ndr_err;
|
enum ndr_err_code ndr_err;
|
||||||
struct GkdiDerivationCtx ctx_with_sd = *ctx;
|
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;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user