[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2325-g4d30a6b
Jeremy Allison
jra at samba.org
Wed May 14 21:10:13 GMT 2008
The branch, v3-2-test has been updated
via 4d30a6bff9ce8e826f0109e99021d6683ec4299f (commit)
from 4f01af6efd6a483b85638141b7f726835e9835ea (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 4d30a6bff9ce8e826f0109e99021d6683ec4299f
Author: Jeremy Allison <jra at samba.org>
Date: Wed May 14 14:09:02 2008 -0700
Ensure we don't keep searching for sharename if it's
not the start of the list.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/smbd/conn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/conn.c b/source/smbd/conn.c
index 1a55522..97861ed 100644
--- a/source/smbd/conn.c
+++ b/source/smbd/conn.c
@@ -90,12 +90,12 @@ connection_struct *conn_find(unsigned cnum)
connection_struct *conn_find_byname(const char *service)
{
- int count=0;
connection_struct *conn;
- for (conn=Connections;conn;conn=conn->next,count++) {
+ for (conn=Connections;conn;conn=conn->next) {
if (strequal(lp_servicename(SNUM(conn)),service)) {
- if (count > 10) {
+ if (conn != Connections) {
+ /* Promote if not first. */
DLIST_PROMOTE(Connections, conn);
}
return conn;
--
Samba Shared Repository
More information about the samba-cvs
mailing list