diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-25 23:43:50 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-02 11:03:22 +0100 |
commit | 90554799afa42855c3e7b87dc632e67f0952f988 (patch) | |
tree | 05d8e9d43ad0a87d96d30c691fb66d9df4d9de65 /source/smbd | |
parent | f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f (diff) | |
download | samba-90554799afa42855c3e7b87dc632e67f0952f988.tar.gz samba-90554799afa42855c3e7b87dc632e67f0952f988.tar.xz samba-90554799afa42855c3e7b87dc632e67f0952f988.zip |
read_socket_with_timeout_ntstatus->read_socket_with_timeout
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/chgpasswd.c | 2 | ||||
-rw-r--r-- | source/smbd/process.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index bd5ff1f5232..e7ab60d22fd 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -265,7 +265,7 @@ static int expect(int master, char *issue, char *expected) while (True) { NTSTATUS status; - status = read_socket_with_timeout_ntstatus( + status = read_socket_with_timeout( master, buffer + nread, 1, sizeof(buffer) - nread - 1, timeout, &len); diff --git a/source/smbd/process.c b/source/smbd/process.c index e21229109da..83e51e3892f 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -141,8 +141,7 @@ static NTSTATUS read_packet_remainder(int fd, char *buffer, return NT_STATUS_OK; } - return read_socket_with_timeout_ntstatus(fd, buffer, len, len, - timeout, NULL); + return read_socket_with_timeout(fd, buffer, len, len, timeout, NULL); } /**************************************************************************** @@ -176,7 +175,7 @@ static NTSTATUS receive_smb_raw_talloc_partial_read(TALLOC_CTX *mem_ctx, memcpy(writeX_header, lenbuf, sizeof(lenbuf)); - status = read_socket_with_timeout_ntstatus( + status = read_socket_with_timeout( fd, writeX_header + 4, STANDARD_WRITE_AND_X_HEADER_SIZE, STANDARD_WRITE_AND_X_HEADER_SIZE, |