blackbox.ndrdump: fix test_ndrdump_fuzzed_NULL_struct_ntlmssp_CHALLENGE_MESSAGE test
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Jan 2022 19:42:45 +0000 (20:42 +0100)
committerJule Anger <janger@samba.org>
Sun, 30 Jan 2022 11:52:27 +0000 (11:52 +0000)
commit4d3054261df3b8726a4db943b0734071ad151423
tree7ef2f34d0a3cb11713739c5e3c3bd0fd4397de1a
parent7734584c4fd5bee49ed564771a16d63f2b005937
blackbox.ndrdump: fix test_ndrdump_fuzzed_NULL_struct_ntlmssp_CHALLENGE_MESSAGE test

This actually reveals that ndr_push_string() for TargetName="" was
failing before because it resulted in 1 byte for a subcontext with
TargetLen=0.

This is fixed now and we no longer expect ndrdump to exit with 1.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14956

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jan 24 16:18:34 UTC 2022 on sn-devel-184

(cherry picked from commit 12464bd4c222d996aac6d6250b7945d63f20f4bc)

Autobuild-User(v4-16-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-16-test): Sun Jan 30 11:52:27 UTC 2022 on sn-devel-184
python/samba/tests/blackbox/ndrdump.py
selftest/knownfail.d/blackbox.ndrdump [deleted file]
source4/librpc/tests/fuzzed_ntlmssp-CHALLENGE_MESSAGE.txt