[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Sat Aug 7 02:12:32 MDT 2010
The branch, master has been updated
via 4c6fd60... s3: Remove an unnecessary NULL check
from 16949ef... s3-net: fix copy/paste typo in usage of "net printing".
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 4c6fd6043b3cf3b395b58037e99b1c2b7334a411
Author: Volker Lendecke <vl at samba.org>
Date: Fri Aug 6 23:27:36 2010 +0200
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.
-----------------------------------------------------------------------
Summary of changes:
source3/lib/conn_tdb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c
index 0770f66..7f9c746 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);
--
Samba Shared Repository
More information about the samba-cvs
mailing list