summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/conn_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c
index 0770f66828..7f9c74636a 100644
--- a/source3/lib/conn_tdb.c
+++ b/source3/lib/conn_tdb.c
@@ -56,7 +56,7 @@ struct db_record *connections_fetch_entry(TALLOC_CTX *mem_ctx,
ZERO_STRUCT(ckey);
ckey.pid = procid_self();
- ckey.cnum = conn ? conn->cnum : -1;
+ ckey.cnum = conn->cnum;
strlcpy(ckey.name, name, sizeof(ckey.name));
key.dsize = sizeof(ckey);