From a036dcd8f0551a5eda013b1371f95f0b8b93c409 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 29 May 2011 09:16:32 +0200 Subject: s3: Check password server loop earlier We do that in the loop for the ip address anyway --- source3/auth/auth_server.c | 10 ++++++---- 1 file 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); -- cgit