libnet: Initialize req_level in become_dc tests
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 18 Jun 2017 22:26:48 +0000 (10:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2017 22:25:15 +0000 (00:25 +0200)
commit475a3206461f5458059f8f530b45f0b1ae636739
tree7a15c19b512bbfc44ce7082607a87745fd287b5b
parent4bd8467018eee181588c13490edbea26b488ee36
libnet: Initialize req_level in become_dc tests

The net.api.become.dc tests would always pass the request into
libnet_vampire_cb_store_chunk() with req_level=0, which meant that
storing the chunk didn't use the correct replica_flags/exop.

I noticed this problem when working on client-side support for GET_TGT.
My changes relied on the critical-only request flag being passed down
into replmd, but because the request flags weren't passed correctly, my
changes caused the become_dc tests to fail.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/libnet/libnet_become_dc.c