r5416: nicer output when trying to replicate with a server that hasn't been setup as
authorAndrew Tridgell <tridge@samba.org>
Wed, 16 Feb 2005 10:10:47 +0000 (10:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:44 +0000 (13:10 -0500)
a partner
(This used to be commit b94301b357801767e65e19be5d9464c58ecf621e)

source4/torture/nbt/winsreplication.c

index f7e120d2269ead27e6b451a2e40f47b590286e50..f3446b8e8bb14fca4cd3976de11205f007c09edb 100644 (file)
@@ -131,6 +131,12 @@ static BOOL nbt_test_wins_replication(TALLOC_CTX *mem_ctx, const char *address)
 
        status = wrepl_request(wrepl_socket, mem_ctx, &request, &reply);
        CHECK_STATUS(status, NT_STATUS_OK);
+       if (reply->mess_type == WREPL_STOP_ASSOCIATION) {
+               printf("server refused table query - reason %d\n",
+                      reply->message.stop.reason);
+               ret = False;
+               goto done;
+       }
        CHECK_VALUE(reply->mess_type, WREPL_REPLICATION);
        CHECK_VALUE(reply->message.replication.command, WREPL_REPL_TABLE_REPLY);