diff options
author | Günther Deschner <gd@samba.org> | 2020-01-13 18:30:14 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-01-16 20:09:42 +0000 |
commit | 21157c66abb349c97d02a1a104a6e1cfcb577542 (patch) | |
tree | f4da2011e1fcf686a09abef9704a2ca3e6ebe255 /source4 | |
parent | efe353edf486ee2ab351735a8f927fe607046bb1 (diff) | |
download | samba-21157c66abb349c97d02a1a104a6e1cfcb577542.tar.gz |
s4-torture: fix asserts in clusapi_NodeControl tests
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/clusapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/clusapi.c b/source4/torture/rpc/clusapi.c index 46950aff4e1..995a8bdd438 100644 --- a/source4/torture/rpc/clusapi.c +++ b/source4/torture/rpc/clusapi.c @@ -1660,8 +1660,8 @@ static bool test_NodeControl_int(struct torture_context *tctx, const char *str; DATA_BLOB blob = data_blob_const(r.out.lpOutBuffer, *r.out.lpBytesReturned); - torture_assert(tctx, *r.out.lpBytesReturned < 4, "unexpected size"); - torture_assert(tctx, *r.out.lpBytesReturned % 2, "must be a multiple of 2"); + torture_assert(tctx, *r.out.lpBytesReturned >= 4, "must be at least 4 bytes long"); + torture_assert(tctx, (*r.out.lpBytesReturned % 2) == 0, "must be a multiple of 2"); torture_assert(tctx, pull_reg_sz(tctx, &blob, &str), |