1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

nsswitch: Fix integer size types in winbind_write_sock()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andreas Schneider 2024-07-17 10:50:30 +02:00 committed by Andreas Schneider
parent 3c91ad9463
commit 5fe2030996

View File

@ -671,10 +671,14 @@ static int winbind_open_pipe_sock(struct winbindd_context *ctx,
/* Write data to winbindd socket */
static int winbind_write_sock(struct winbindd_context *ctx, void *buffer,
int count, int recursing, int need_priv)
static ssize_t winbind_write_sock(struct winbindd_context *ctx,
void *buffer,
size_t count,
int recursing,
int need_priv)
{
int fd, result, nwritten;
int fd;
ssize_t nwritten;
/* Open connection to winbind daemon */
@ -692,6 +696,7 @@ static int winbind_write_sock(struct winbindd_context *ctx, void *buffer,
while(nwritten < count) {
struct pollfd pfd;
ssize_t result;
int ret;
/* Catch pipe close on other end by checking if a read()