py:dcerpc/raw_testcase: let do_single_request() check stub length against alloc_hint
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Nov 2018 15:01:01 +0000 (16:01 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 23 Dec 2018 17:15:20 +0000 (18:15 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/dcerpc/raw_testcase.py

index cf35c10..61538ce 100644 (file)
@@ -425,6 +425,7 @@ class RawDCERPCTest(TestCase):
                 stub_out = rep_data[0:-rep_auth_info.auth_pad_length]
             else:
                 stub_out = rep.u.stub_and_verifier
+            self.assertEqual(len(stub_out), rep.u.alloc_hint)
 
             if hexdump:
                 sys.stderr.write("stub_out: %d\n%s" % (len(stub_out), self.hexdump(stub_out)))