summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 3334fde9bb..46905c0a5b 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -64,6 +64,12 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
}
strupper_m(desthost);
+ if (strequal(desthost, myhostname())) {
+ DEBUG(1,("Password server loop - disabling "
+ "password server %s\n", desthost));
+ continue;
+ }
+
if(!resolve_name( desthost, &dest_ss, 0x20, false)) {
DEBUG(1,("server_cryptkey: Can't resolve address for %s\n",desthost));
continue;
@@ -110,10 +116,6 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
return NULL;
}
- if (strequal(desthost,myhostname())) {
- exit_server_cleanly("Password server loop!");
- }
-
DEBUG(3,("got session\n"));
status = cli_negprot(cli);