summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-03 11:31:03 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-05 14:09:00 +0100
commit4c51c073806048c6ad65e2ea44877a144f560699 (patch)
tree133fd2314be54a68bdeecb9bd4bb4dd748dfcfaa
parent6eedba102b58944c462e913e2c97a37b0b83254c (diff)
downloadsamba-4c51c073806048c6ad65e2ea44877a144f560699.tar.gz
samba-4c51c073806048c6ad65e2ea44877a144f560699.tar.bz2
samba-4c51c073806048c6ad65e2ea44877a144f560699.zip
s4:torture/nbt: avoid the usage of wrepl_pull_table_send()
metze
-rw-r--r--source4/torture/nbt/winsreplication.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c
index e7bd83e569..14fe5845e1 100644
--- a/source4/torture/nbt/winsreplication.c
+++ b/source4/torture/nbt/winsreplication.c
@@ -88,7 +88,6 @@ static bool test_assoc_ctx1(struct torture_context *tctx)
struct wrepl_associate associate1;
struct wrepl_socket *wrepl_socket2;
struct wrepl_associate associate2;
- struct wrepl_pull_table pull_table;
struct wrepl_packet packet;
struct wrepl_send_ctrl ctrl;
struct wrepl_packet *rep_packet;
@@ -141,8 +140,12 @@ static bool test_assoc_ctx1(struct torture_context *tctx)
CHECK_STATUS(tctx, status, NT_STATUS_OK);
torture_comment(tctx, "Send a replication table query, with invalid assoc (conn1), receive answer from conn2\n");
- pull_table.in.assoc_ctx = 0;
- req = wrepl_pull_table_send(wrepl_socket1, &pull_table);
+ ZERO_STRUCT(packet);
+ packet.opcode = WREPL_OPCODE_BITS;
+ packet.assoc_ctx = 0;
+ packet.mess_type = WREPL_REPLICATION;
+ packet.message.replication.command = WREPL_REPL_TABLE_QUERY;
+ req = wrepl_request_send(wrepl_socket1, &packet, NULL);
status = wrepl_request_recv(req, tctx, &rep_packet);
CHECK_STATUS(tctx, status, NT_STATUS_OK);