From fc41e4791f3a59cd391d63ebc155407ea4787bae Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Mar 2010 14:34:36 +0100 Subject: s4:torture/nbt: use wrepl_associate_stop() instead of build the request by hand metze --- source4/torture/nbt/winsreplication.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'source4/torture/nbt') diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 1d08c4f849..1655135a33 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -274,17 +274,12 @@ static bool test_wins_replication(struct torture_context *tctx) status = wrepl_pull_table(wrepl_socket, tctx, &pull_table); if (NT_STATUS_EQUAL(NT_STATUS_NETWORK_ACCESS_DENIED,status)) { - struct wrepl_packet packet; - struct wrepl_request *req; + struct wrepl_associate_stop assoc_stop; - ZERO_STRUCT(packet); - packet.opcode = WREPL_OPCODE_BITS; - packet.assoc_ctx = associate.out.assoc_ctx; - packet.mess_type = WREPL_STOP_ASSOCIATION; - packet.message.stop.reason = 0; + assoc_stop.in.assoc_ctx = associate.out.assoc_ctx; + assoc_stop.in.reason = 0; - req = wrepl_request_send(wrepl_socket, &packet, NULL); - talloc_free(req); + wrepl_associate_stop(wrepl_socket, &assoc_stop); torture_fail(tctx, "We are not a valid pull partner for the server"); } -- cgit