blackbox.ndrdump: fix test_ndrdump_fuzzed_NULL_struct_ntlmssp_CHALLENGE_MESSAGE test
commitbab52ff3bf88cfbacead33d6a09e851f48c81004
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Jan 2022 19:42:45 +0000 (21 20:42 +0100)
committerJule Anger <janger@samba.org>
Sun, 30 Jan 2022 11:18:59 +0000 (30 11:18 +0000)
tree8cf9062065a7799e7b351966d63a2e4130b0c77b
parentc0795f1a6348048c849b853c5c6e0cbc7b002daa
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-15-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-15-test): Sun Jan 30 11:18:59 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