summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);