summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-28 19:53:59 +0100
committerVolker Lendecke <vl@samba.org>2008-12-19 13:57:32 +0100
commit2504d78c82097074a50095a9b9598876f4604a99 (patch)
treefe0ff9c95eef3a195b82e3017b14a92a4bc666f5 /source3/winbindd
parent2fe7d5936aea2ab74bf63997212f509e4a3ccee4 (diff)
downloadsamba-2504d78c82097074a50095a9b9598876f4604a99.tar.gz
samba-2504d78c82097074a50095a9b9598876f4604a99.tar.bz2
samba-2504d78c82097074a50095a9b9598876f4604a99.zip
Fix a "ignoring function call result" warning
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 0ecf11d0e5..e881ab412e 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -729,6 +729,7 @@ static void new_connection(int listen_sock, bool privileged)
static void remove_client(struct winbindd_cli_state *state)
{
char c = 0;
+ int nwritten;
/* It's a dead client - hold a funeral */
@@ -737,7 +738,11 @@ static void remove_client(struct winbindd_cli_state *state)
}
/* tell client, we are closing ... */
- write(state->sock, &c, sizeof(c));
+ nwritten = write(state->sock, &c, sizeof(c));
+ if (nwritten == -1) {
+ DEBUG(2, ("final write to client failed: %s\n",
+ strerror(errno)));
+ }
/* Close socket */