]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/nbt: avoid the usage of wrepl_pull_table_send()
authorStefan Metzmacher <metze@samba.org>
Wed, 3 Mar 2010 10:31:03 +0000 (11:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Mar 2010 13:09:00 +0000 (14:09 +0100)
metze

source4/torture/nbt/winsreplication.c

index e7bd83e56944f5ec8875c2d7199b808e1894b453..14fe5845e109070c344cf93009f2f0674afd8d3c 100644 (file)
@@ -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);