summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-29 09:16:32 +0200
committerVolker Lendecke <vl@samba.org>2011-05-29 12:49:33 +0200
commita036dcd8f0551a5eda013b1371f95f0b8b93c409 (patch)
treed118000d054f1a1a4db3e42d0e23d6e086e28ad3
parentedfa62f2a0f42440d7a17d519c281f28d623a602 (diff)
downloadsamba-a036dcd8f0551a5eda013b1371f95f0b8b93c409.tar.gz
samba-a036dcd8f0551a5eda013b1371f95f0b8b93c409.tar.bz2
samba-a036dcd8f0551a5eda013b1371f95f0b8b93c409.zip
s3: Check password server loop earlier
We do that in the loop for the ip address anyway
-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);