summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-02 23:29:57 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-02 23:29:57 +0000
commita53d7c11649e61b74b23bd6127283f2c7a3d63b0 (patch)
tree9fd1824ffa2f33753ff62a5694444c3152e27318 /source3
parent6a012a815317e2a3a31d2816943ae0750eb15cd5 (diff)
downloadsamba-a53d7c11649e61b74b23bd6127283f2c7a3d63b0.tar.gz
samba-a53d7c11649e61b74b23bd6127283f2c7a3d63b0.tar.bz2
samba-a53d7c11649e61b74b23bd6127283f2c7a3d63b0.zip
changing the comment in find_new_file() to say why a base of 1 is used
(This used to be commit 2b0f3fd14908411472be032ad09144cb71c55479)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index d707699e33..1ddb3204d3 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -3619,8 +3619,7 @@ int make_connection(char *service,char *user,char *password, int pwlen, char *de
int find_free_file(void )
{
int i;
- /* we start at 1 here for an obscure reason I can't now remember,
- but I think is important :-) */
+ /* returning a file handle of 0 is a bad idea - so we start at 1 */
for (i=1;i<MAX_OPEN_FILES;i++)
if (!Files[i].open) {
/* paranoia */