[SCM] Samba Shared Repository - branch v3-0-test updated -
release-3-0-28a-1162-g9e4ea76
Jeremy Allison
jra at samba.org
Wed May 14 21:10:51 GMT 2008
The branch, v3-0-test has been updated
via 9e4ea761055429185b7c76cf4c96ef5407fa7e83 (commit)
from a48a45bda33a3d46c30b425c802aa5cff19dd92e (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test
- Log -----------------------------------------------------------------
commit 9e4ea761055429185b7c76cf4c96ef5407fa7e83
Author: Jeremy Allison <jra at samba.org>
Date: Wed May 14 14:10:26 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 bd1f490..ed8bdef 100644
--- a/source/smbd/conn.c
+++ b/source/smbd/conn.c
@@ -91,12 +91,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