summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-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 */