summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-16 10:10:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:44 -0500
commit97dcee677e4fda03bed2ace3151e329e340ca313 (patch)
tree47cb8c26bc2be5b2a1c94e2469c2ff4ac94f09f3
parent14bd4b81846318f2dd9a6a29018481299bd07450 (diff)
downloadsamba-97dcee677e4fda03bed2ace3151e329e340ca313.tar.gz
samba-97dcee677e4fda03bed2ace3151e329e340ca313.tar.bz2
samba-97dcee677e4fda03bed2ace3151e329e340ca313.zip
r5416: nicer output when trying to replicate with a server that hasn't been setup as
a partner (This used to be commit b94301b357801767e65e19be5d9464c58ecf621e)
-rw-r--r--source4/torture/nbt/winsreplication.c6
1 files changed, 6 insertions, 0 deletions
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);