summaryrefslogtreecommitdiff
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-07-30 15:47:30 +0000
committerAndrew Tridgell <tridge@samba.org>1996-07-30 15:47:30 +0000
commit2b4b7b4e1adbd2aac9aab89b28df82fc145a6d87 (patch)
tree179251b54f35c910b512338d2b420bcd7fcd3763 /source3/smbd/chgpasswd.c
parenta7ed8cd8ac3e1c0f8cd68bed654ae21cb3acde12 (diff)
downloadsamba-2b4b7b4e1adbd2aac9aab89b28df82fc145a6d87.tar.gz
samba-2b4b7b4e1adbd2aac9aab89b28df82fc145a6d87.tar.bz2
samba-2b4b7b4e1adbd2aac9aab89b28df82fc145a6d87.zip
fix a bug that we've had for a long time where we don't handle EOF
properly from clients, and end up looping like mad. At least I _hope_ this is fixed. (This used to be commit a7c7d7afe2ef81f4a74584ce9b71e54442f7e484)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 809ac4d224..54b49edf13 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -178,7 +178,7 @@ static int expect(int master,char *expected,char *buf)
}
/* allow 4 seconds for some output to appear */
- m = read_with_timeout(master, buf+n, 1, BUFSIZE-1-n, 4000, True);
+ m = read_with_timeout(master, buf+n, 1, BUFSIZE-1-n, 4000);
if (m < 0)
return False;