diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/files.c | 6 | ||||
-rw-r--r-- | source3/smbd/oplock_linux.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 99ceb51731..05b22dcd7c 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -248,15 +248,15 @@ struct files_struct *files_forall( Find a fsp given a file descriptor. ****************************************************************************/ -files_struct *file_find_fd(int fd) +files_struct *file_find_fd(struct smbd_server_connection *sconn, int fd) { int count=0; files_struct *fsp; - for (fsp=smbd_server_conn->files;fsp;fsp=fsp->next,count++) { + for (fsp=sconn->files; fsp; fsp=fsp->next,count++) { if (fsp->fh->fd == fd) { if (count > 10) { - DLIST_PROMOTE(smbd_server_conn->files, fsp); + DLIST_PROMOTE(sconn->files, fsp); } return fsp; } diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index fe9c58d7ec..bdc86b9fb9 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -97,7 +97,7 @@ static void linux_oplock_signal_handler(struct tevent_context *ev_ctx, int fd = info->si_fd; files_struct *fsp; - fsp = file_find_fd(fd); + fsp = file_find_fd(smbd_server_conn, fd); if (fsp == NULL) { DEBUG(0,("linux_oplock_signal_handler: failed to find fsp for file fd=%d (file was closed ?)\n", fd )); return; |