summaryrefslogtreecommitdiff
path: root/source3/smbd/connection.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-11-17 03:15:18 +0000
committerAndrew Tridgell <tridge@samba.org>2000-11-17 03:15:18 +0000
commit0de5569304ec1d1650865983dba32f13c313104c (patch)
treee48c0c7d40944fc3af5c0f759db7590823e58af3 /source3/smbd/connection.c
parent475fb713a9427b54c747a4e71a011c7db29d5e13 (diff)
downloadsamba-0de5569304ec1d1650865983dba32f13c313104c.tar.gz
fixed the problem with messages not getting through
the problem had nothing to do with being your own pid, it was instead a problem with IPC$ connections not being registered in the connections database and an incorrect test for -1 in the messaging code. These changes also mean that IPC$ shares now show up in smbstatus. That is probably a good thing. (This used to be commit 3575ad10985a18f897e38179ca69fa9a49a7ea02)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r--source3/smbd/connection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 6e088f9f8f5..cf455c0a8b8 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -72,9 +72,6 @@ BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOO
struct connections_data crec;
TDB_DATA kbuf, dbuf;
- if (max_connections <= 0)
- return(True);
-
if (!tdb) {
tdb = tdb_open(lock_path("connections.tdb"), 0, TDB_CLEAR_IF_FIRST,
O_RDWR | O_CREAT, 0644);