summaryrefslogtreecommitdiff
path: root/source/smbd/connection.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-01-08 21:19:15 +0000
committerJeremy Allison <jra@samba.org>2001-01-08 21:19:15 +0000
commit48a3afcd4716a456c3072bf41450b361e4379be8 (patch)
treed1929c7f4e97ff23004a65b2e3436e999e59b4cb /source/smbd/connection.c
parent1c0ae957f8f1abee7d22a18b6df092eb2a884ae1 (diff)
downloadsamba-48a3afcd4716a456c3072bf41450b361e4379be8.tar.gz
Patch from Richard Bollinger for dead entries being left in connections tdb.
Jeremy.
Diffstat (limited to 'source/smbd/connection.c')
-rw-r--r--source/smbd/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/connection.c b/source/smbd/connection.c
index d150508cefb..b0b4bbab7b7 100644
--- a/source/smbd/connection.c
+++ b/source/smbd/connection.c
@@ -55,7 +55,7 @@ BOOL yield_connection(connection_struct *conn,char *name,int max_connections)
ZERO_STRUCT(key);
key.pid = sys_getpid();
- if (conn) key.cnum = conn->cnum;
+ key.cnum = conn?conn->cnum:-1;
fstrcpy(key.name, name);
kbuf.dptr = (char *)&key;