summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-15 15:30:21 +0200
committerVolker Lendecke <vl@samba.org>2010-08-17 22:44:03 +0200
commit7d164498dbad77e2072eaae9e421ee1c45336257 (patch)
treeebdcf3b70b971957b107ce8074205dcc2889c595 /source3/lib/util_sock.c
parent9671547d17fa8152dbad127fde2a963b2ba834a0 (diff)
downloadsamba-7d164498dbad77e2072eaae9e421ee1c45336257.tar.gz
samba-7d164498dbad77e2072eaae9e421ee1c45336257.tar.bz2
samba-7d164498dbad77e2072eaae9e421ee1c45336257.zip
s3: Lift smbd_server_fd() from read_data()
All callers have appropriate debug messages themselves
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index b61a3f703e..74a3e343ac 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -531,25 +531,7 @@ NTSTATUS read_fd_with_timeout(int fd, char *buf,
NTSTATUS read_data(int fd, char *buffer, size_t N)
{
- NTSTATUS status;
-
- status = read_fd_with_timeout(fd, buffer, N, N, 0, NULL);
- if (NT_STATUS_IS_OK(status)) {
- return 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)));
- }
- return status;
+ return read_fd_with_timeout(fd, buffer, N, N, 0, NULL);
}
/****************************************************************************