diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-08-22 11:09:30 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-08-22 11:14:22 +1000 |
commit | 497234c1cbded9855b817114a6517c58daa25805 (patch) | |
tree | 692d1660ff077d4a6dee4c4c40e8c12d4a9692a1 /source4/torture/ntp | |
parent | f9c0f889624681c9244140c263b4ed072980dbcc (diff) | |
download | samba-497234c1cbded9855b817114a6517c58daa25805.tar.gz samba-497234c1cbded9855b817114a6517c58daa25805.tar.bz2 samba-497234c1cbded9855b817114a6517c58daa25805.zip |
s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd
The change to protocol version 1 was not intentional, and broke the
protocol established with the ntp.org project.
Andrew Bartlett
Diffstat (limited to 'source4/torture/ntp')
-rw-r--r-- | source4/torture/ntp/ntp_signd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/ntp/ntp_signd.c b/source4/torture/ntp/ntp_signd.c index e82276a086..1b3c59543e 100644 --- a/source4/torture/ntp/ntp_signd.c +++ b/source4/torture/ntp/ntp_signd.c @@ -154,7 +154,6 @@ static bool test_ntp_signd(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "ServerAuthenticate3"); torture_assert(tctx, netlogon_creds_client_check(creds, &credentials3), "Credential chaining failed"); - sign_req.version = 1; sign_req.op = SIGN_TO_CLIENT; sign_req.packet_id = 1; sign_req.key_id = rid; @@ -225,7 +224,7 @@ static bool test_ntp_signd(struct torture_context *tctx, torture_assert(tctx, NDR_ERR_CODE_IS_SUCCESS(ndr_err), ndr_map_error2string(ndr_err)); torture_assert_u64_equal(tctx, signed_reply.version, - sign_req.version, "Invalid Version"); + NTP_SIGND_PROTOCOL_VERSION_0, "Invalid Version"); torture_assert_u64_equal(tctx, signed_reply.packet_id, sign_req.packet_id, "Invalid Packet ID"); torture_assert_u64_equal(tctx, signed_reply.op, |