diff options
author | Jeremy Allison <jra@samba.org> | 1998-07-22 13:59:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-07-22 13:59:19 +0000 |
commit | 339b10222269d71c7a493cc08b7b1bfd35fd55fc (patch) | |
tree | d98a611c9c0a86af49c65881a58df7ff06c09474 /source/smbd/reply.c | |
parent | 953c5dbbae8c1370e5988619746b508f26cb0390 (diff) | |
download | samba-339b10222269d71c7a493cc08b7b1bfd35fd55fc.tar.gz samba-339b10222269d71c7a493cc08b7b1bfd35fd55fc.tar.xz samba-339b10222269d71c7a493cc08b7b1bfd35fd55fc.zip |
Fixed bug found by Richard Sharpe. After increasing files_struct size by
MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that
enumerates the array.
Created new MAX_FNUMS in local.h, changed all code that iterates
through the files_struct array to use this.
(sorry Richard).
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index a0d1775b215..f6fd2ccd900 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1490,7 +1490,7 @@ int reply_ulogoffX(char *inbuf,char *outbuf,int length,int bufsize) open by this user */ if ((vuser != 0) && (lp_security() != SEC_SHARE)) { int i; - for (i=0;i<MAX_OPEN_FILES;i++) { + for (i=0;i<MAX_FNUMS;i++) { files_struct *fsp = &Files[i]; if ((fsp->vuid == vuid) && fsp->open) { if(!fsp->is_directory) @@ -2396,7 +2396,7 @@ int reply_flush(char *inbuf,char *outbuf, int dum_size, int dum_buffsize) if (fnum == 0xFFFF) { int i; - for (i=0;i<MAX_OPEN_FILES;i++) + for (i=0;i<MAX_FNUMS;i++) if (OPEN_FNUM(i)) sync_file(i); } |