summaryrefslogtreecommitdiff
path: root/source3/smbd/oplock.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-05-24 00:17:01 +0000
committerJeremy Allison <jra@samba.org>2002-05-24 00:17:01 +0000
commitda563c93df07f332e845ce82f5d08e13192af559 (patch)
treeb6b5dc61ec97c79af3f785af7e4db7f99c872358 /source3/smbd/oplock.c
parent6a663f5a2af537e8f982abe79785535c702302bb (diff)
downloadsamba-da563c93df07f332e845ce82f5d08e13192af559.tar.gz
samba-da563c93df07f332e845ce82f5d08e13192af559.tar.bz2
samba-da563c93df07f332e845ce82f5d08e13192af559.zip
Fixed silly typo that causes receive_local_message to loop - caused by
my removal of the goto. Oops ! Jeremy. (This used to be commit 4d3679e03e0c30602b1345cbf2fbf8587dff1f26)
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r--source3/smbd/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 9bc7d64381..f83ef0c6d3 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -82,7 +82,7 @@ BOOL receive_local_message( char *buffer, int buffer_len, int timeout)
smb_read_error = 0;
- while (timeout > 0) {
+ while (timeout > 0 && selrtn == -1) {
struct timeval to;
int maxfd = oplock_sock;
time_t starttime = time(NULL);