diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ctdbd_conn.c | 6 | ||||
-rw-r--r-- | source3/lib/util_sock.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 5dc007bf5c..7bdb37664f 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -379,7 +379,7 @@ static NTSTATUS ctdb_read_packet(int fd, TALLOC_CTX *mem_ctx, } } - status = read_data(fd, (char *)&msglen, sizeof(msglen)); + status = read_data_ntstatus(fd, (char *)&msglen, sizeof(msglen)); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -396,8 +396,8 @@ static NTSTATUS ctdb_read_packet(int fd, TALLOC_CTX *mem_ctx, req->length = msglen; - status = read_data(fd, ((char *)req) + sizeof(msglen), - msglen - sizeof(msglen)); + status = read_data_ntstatus(fd, ((char *)req) + sizeof(msglen), + msglen - sizeof(msglen)); if (!NT_STATUS_IS_OK(status)) { return status; } diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 2bed9a9063..d93e22d702 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -197,7 +197,7 @@ NTSTATUS read_fd_with_timeout(int fd, char *buf, on socket calls. ****************************************************************************/ -NTSTATUS read_data(int fd, char *buffer, size_t N) +NTSTATUS read_data_ntstatus(int fd, char *buffer, size_t N) { return read_fd_with_timeout(fd, buffer, N, N, 0, NULL); } |