diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-17 03:52:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-17 03:52:05 +0000 |
commit | 8978aae69699ccab76fdf95037948b1cc7e7c286 (patch) | |
tree | 19d2fdbc1da4d4353d226a81960f500ac06c0359 /source3/smbd/server.c | |
parent | f2d538a105a61ce6d2852700fc328e15ac158827 (diff) | |
download | samba-8978aae69699ccab76fdf95037948b1cc7e7c286.tar.gz samba-8978aae69699ccab76fdf95037948b1cc7e7c286.tar.bz2 samba-8978aae69699ccab76fdf95037948b1cc7e7c286.zip |
much cleaner chain pointer handling for both files and pipes.
the chain pointer is now stored as a static and is set whenever a
handle is created or extracted. This also makes the code less error
prone.
(This used to be commit 068a862982bea726e8d7b1b4065d510b9840a272)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e6117000a4..f160b590dc 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -81,9 +81,6 @@ int max_send = BUFFER_SIZE; */ int max_recv = BUFFER_SIZE; -/* a fsp to use when chaining */ -files_struct *chain_fsp = NULL; - /* number of open connections */ static int num_connections_open = 0; @@ -4699,7 +4696,7 @@ int construct_reply(char *inbuf,char *outbuf,int size,int bufsize) smb_last_time = time(NULL); chain_size = 0; - chain_fsp = NULL; + file_chain_reset(); reset_chain_p(); if (msg_type != 0) |