summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-11-30 15:52:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:27 -0500
commit88747a7da351261185222e78e9c8d470ff53a246 (patch)
tree5e69e4093d2a1693473e873133ddd35fc9b3e19d /source/smbd/negprot.c
parent7e78059948612fa9f5d179a1e3f5f59e7ad5e456 (diff)
downloadsamba-88747a7da351261185222e78e9c8d470ff53a246.tar.gz
samba-88747a7da351261185222e78e9c8d470ff53a246.tar.xz
samba-88747a7da351261185222e78e9c8d470ff53a246.zip
r4018: * move claim_connection from the netbios session request
reply code to the negprot reply code to cope with client connections on port 445. Fixes the spurious "register_message_flags: tdb fetch failed" errors. * don't run the backgroup LPQ daemon when we are running in interactive mode.
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r--source/smbd/negprot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index 7da9d1281e1..9aaa818c62a 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -523,6 +523,12 @@ int reply_negprot(connection_struct *conn,
/* possibly reload - change of architecture */
reload_services(True);
+
+ /* moved from the netbios session setup code since we don't have that
+ when the client connects to port 445. Of course there is a small
+ window where we are listening to messages -- jerry */
+
+ claim_connection(NULL,"",0,True,FLAG_MSG_GENERAL|FLAG_MSG_SMBD|FLAG_MSG_PRINT_GENERAL);
/* Check for protocols, most desirable first */
for (protocol = 0; supported_protocols[protocol].proto_name; protocol++) {