summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-11-19 14:06:49 +0000
committerJeremy Allison <jra@samba.org>2014-12-07 00:12:07 +0100
commita8491cb95a2c181d40b0b94cceff8d69d137935c (patch)
tree6bdf806d414b886bc8a4480c508000b16c27cb6a /source3/winbindd
parent97b2570a5e526273476d3990bcef0ac074b34d67 (diff)
downloadsamba-a8491cb95a2c181d40b0b94cceff8d69d137935c.tar.gz
samba-a8491cb95a2c181d40b0b94cceff8d69d137935c.tar.xz
samba-a8491cb95a2c181d40b0b94cceff8d69d137935c.zip
lib: read_data->read_data_ntstatus
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_dual.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index b9c110f9b2..43a27b3f4d 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -53,7 +53,7 @@ static NTSTATUS child_read_request(int sock, struct winbindd_request *wreq)
{
NTSTATUS status;
- status = read_data(sock, (char *)wreq, sizeof(*wreq));
+ status = read_data_ntstatus(sock, (char *)wreq, sizeof(*wreq));
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("child_read_request: read_data failed: %s\n",
nt_errstr(status)));
@@ -76,7 +76,8 @@ static NTSTATUS child_read_request(int sock, struct winbindd_request *wreq)
/* Ensure null termination */
wreq->extra_data.data[wreq->extra_len] = '\0';
- status = read_data(sock, wreq->extra_data.data, wreq->extra_len);
+ status = read_data_ntstatus(sock, wreq->extra_data.data,
+ wreq->extra_len);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Could not read extra data: %s\n",
nt_errstr(status)));