From 97dcee677e4fda03bed2ace3151e329e340ca313 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Feb 2005 10:10:47 +0000 Subject: r5416: nicer output when trying to replicate with a server that hasn't been setup as a partner (This used to be commit b94301b357801767e65e19be5d9464c58ecf621e) --- source4/torture/nbt/winsreplication.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/torture/nbt') diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index f7e120d226..f3446b8e8b 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -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); -- cgit