Extend the NBT-DGRAM torture test again.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 May 2008 04:28:17 +0000 (14:28 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 May 2008 04:28:17 +0000 (14:28 +1000)
Andrew Bartlett
(This used to be commit f4154846401b31d99c40b2ea53992262095366b0)

source4/torture/nbt/dgram.c

index 66a3d142db59c115fe7e8d267fa37e241d2bba68..f8f9eaf884f6c670ef5d87d0bd5744e29cb2ada6 100644 (file)
@@ -246,6 +246,7 @@ static bool nbt_test_netlogon2(struct torture_context *tctx)
        map_netlogon_samlogon_response(&response->samlogon);
 
        torture_assert_int_equal(tctx, response->samlogon.nt5_ex.command, LOGON_SAM_LOGON_RESPONSE_EX, "Got incorrect netlogon response command");
+       torture_assert_int_equal(tctx, response->samlogon.nt5_ex.nt_version, NETLOGON_NT_VERSION_5EX_WITH_IP|NETLOGON_NT_VERSION_5EX|NETLOGON_NT_VERSION_5|NETLOGON_NT_VERSION_1, "Got incorrect netlogon response command");
 
        /* setup (another) temporary mailslot listener for replies */
        dgmslot = dgram_mailslot_temp(dgmsock, NBT_MAILSLOT_GETDC,