mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Remove smbd_server_fd from receive_smb_raw
This is only called from client code
This commit is contained in:
parent
a58cea0026
commit
e65197e56f
@ -727,18 +727,8 @@ NTSTATUS receive_smb_raw(int fd, char *buffer, size_t buflen, unsigned int timeo
|
||||
status = read_smb_length_return_keepalive(fd,buffer,timeout,&len);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
if (fd == smbd_server_fd()) {
|
||||
char addr[INET6_ADDRSTRLEN];
|
||||
/* Try and give an error message
|
||||
* saying what client failed. */
|
||||
DEBUG(0, ("read_fd_with_timeout failed for "
|
||||
"client %s read error = %s.\n",
|
||||
get_peer_addr(fd,addr,sizeof(addr)),
|
||||
nt_errstr(status)));
|
||||
} else {
|
||||
DEBUG(0, ("read_fd_with_timeout failed, read "
|
||||
"error = %s.\n", nt_errstr(status)));
|
||||
}
|
||||
DEBUG(0, ("read_fd_with_timeout failed, read "
|
||||
"error = %s.\n", nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -757,19 +747,8 @@ NTSTATUS receive_smb_raw(int fd, char *buffer, size_t buflen, unsigned int timeo
|
||||
fd, buffer+4, len, len, timeout, &len);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
if (fd == smbd_server_fd()) {
|
||||
char addr[INET6_ADDRSTRLEN];
|
||||
/* Try and give an error message
|
||||
* saying what client failed. */
|
||||
DEBUG(0, ("read_fd_with_timeout failed for "
|
||||
"client %s read error = %s.\n",
|
||||
get_peer_addr(fd,addr,sizeof(addr)),
|
||||
nt_errstr(status)));
|
||||
} else {
|
||||
DEBUG(0, ("read_fd_with_timeout failed, "
|
||||
"read error = %s.\n",
|
||||
nt_errstr(status)));
|
||||
}
|
||||
DEBUG(0, ("read_fd_with_timeout failed, read error = "
|
||||
"%s.\n", nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user