diff options
author | Jeremy Allison <jra@samba.org> | 2008-05-19 13:11:00 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-05-19 13:11:00 -0700 |
commit | c7f5d24d813097a5bdb29c68bd30f4d117e083be (patch) | |
tree | a34361049971beae12402141143e11e7626d57cf /source3/smbd/conn.c | |
parent | 3a0437623e2e1043ced3db5b300a17a85bf69324 (diff) | |
download | samba-c7f5d24d813097a5bdb29c68bd30f4d117e083be.tar.gz samba-c7f5d24d813097a5bdb29c68bd30f4d117e083be.tar.bz2 samba-c7f5d24d813097a5bdb29c68bd30f4d117e083be.zip |
Restructuring of code to fix #5460. Remove search
by name code from conn, we were already doing the
same check in the dfs_redirect() function, so move
it into parse_dfs_path() instead.
Jeremy.
(This used to be commit 8a7c6df122c5e4a1d0f74ab0f1bc9376a0a8bcb1)
Diffstat (limited to 'source3/smbd/conn.c')
-rw-r--r-- | source3/smbd/conn.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index 159b232b5f..5c75ed719e 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -85,28 +85,6 @@ connection_struct *conn_find(unsigned cnum) } /**************************************************************************** - Find a conn given a service name. -****************************************************************************/ - -connection_struct *conn_find_byname(const char *service) -{ - connection_struct *conn; - - for (conn=Connections;conn;conn=conn->next) { - if (strequal(lp_servicename(SNUM(conn)),service)) { - if (conn != Connections) { - /* Promote if not first. */ - DLIST_PROMOTE(Connections, conn); - } - return conn; - } - } - - return NULL; -} - - -/**************************************************************************** find first available connection slot, starting from a random position. The randomisation stops problems with the server dieing and clients thinking the server is still available. |