diff options
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r-- | source/smbd/process.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c index 1bf6f4f9d14..54837c3b9ae 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -20,11 +20,6 @@ #include "includes.h" -extern uint16 global_smbpid; -extern int keepalive; -extern struct auth_context *negprot_global_auth_context; -extern int smb_echo_count; - struct timeval smb_last_time; static char *InBuffer = NULL; @@ -216,7 +211,6 @@ BOOL open_was_deferred(uint16 mid) for (pml = smb_sharing_violation_queue; pml; pml = pml->next) { if (SVAL(pml->buf.data,smb_mid) == mid) { - set_saved_error_triple(SMB_SUCCESS, 0, NT_STATUS_OK); return True; } } @@ -857,6 +851,7 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize { static pid_t pid= (pid_t)-1; int outsize = 0; + extern uint16 global_smbpid; type &= 0xff; @@ -864,8 +859,6 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize pid = sys_getpid(); errno = 0; - set_saved_error_triple(0, 0, NT_STATUS_OK); - last_message = type; /* Make sure this is an SMB packet. smb_size contains NetBIOS header so subtract 4 from it. */ @@ -1335,6 +1328,7 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t static time_t last_idle_closed_check = 0; time_t t; BOOL allidle = True; + extern int keepalive; if (smb_read_error == READ_EOF) { DEBUG(3,("timeout_processing: End of file from client (client has disconnected).\n")); @@ -1378,6 +1372,7 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t } if (keepalive && (t - last_keepalive_sent_time)>keepalive) { + extern struct auth_context *negprot_global_auth_context; if (!send_keepalive(smbd_server_fd())) { DEBUG( 2, ( "Keepalive failed - exiting.\n" ) ); return False; @@ -1495,6 +1490,7 @@ machine %s in domain %s.\n", global_myname(), lp_workgroup())); void smbd_process(void) { + extern int smb_echo_count; time_t last_timeout_processing_time = time(NULL); unsigned int num_smbs = 0; const size_t total_buffer_size = BUFFER_SIZE + LARGE_WRITEX_HDR_SIZE + SAFETY_MARGIN; |