summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-06 23:27:36 +0200
committerVolker Lendecke <vl@samba.org>2010-08-07 10:12:18 +0200
commit4c6fd6043b3cf3b395b58037e99b1c2b7334a411 (patch)
tree79e8adef8eb42eacad11244d24078ce1f0e3d55a
parent16949ef75a91adf68c2888cb4cb0d7f802e8781e (diff)
downloadsamba-4c6fd6043b3cf3b395b58037e99b1c2b7334a411.tar.gz
samba-4c6fd6043b3cf3b395b58037e99b1c2b7334a411.tar.bz2
samba-4c6fd6043b3cf3b395b58037e99b1c2b7334a411.zip
s3: Remove an unnecessary NULL check
Now that connections.tdb is not used for the broadcast messaging anymore, connections_fetch_entry is only called for real connections.
-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);