summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-09-19 18:49:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:40 -0500
commit7bd1888cdf95b0e32fe1a2993d7bcb2b16e475b1 (patch)
tree27beb86f10f8a94e967a3e1a67b4a3f507b96906 /source3/nsswitch/pam_winbind.c
parenteb93fc968daa42bc87cb7f5bb62ed65624a4c774 (diff)
downloadsamba-7bd1888cdf95b0e32fe1a2993d7bcb2b16e475b1.tar.gz
samba-7bd1888cdf95b0e32fe1a2993d7bcb2b16e475b1.tar.bz2
samba-7bd1888cdf95b0e32fe1a2993d7bcb2b16e475b1.zip
r10321: Fix winbindd recursion bug found by Ingo Steuwer <steuwer@univention.de>.
Jeremy. (This used to be commit 6795c818a3d63737d5b40faffa3a0b91c71b427b)
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 8d4f59101c..a87ccb4972 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -106,7 +106,7 @@ static int pam_winbind_request(enum winbindd_cmd req_type,
/* Fill in request and send down pipe */
init_request(request, req_type);
- if (write_sock(request, sizeof(*request)) == -1) {
+ if (write_sock(request, sizeof(*request), 0) == -1) {
_pam_log(LOG_ERR, "write to socket failed!");
close_sock();
return PAM_SERVICE_ERR;