s3:blocking: use timeval_expired(&state->endtime) to stop processing
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2019 16:17:47 +0000 (18:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Sep 2019 16:04:30 +0000 (16:04 +0000)
commit9f46f3b0e722d993a650fc3659e842aad08837a6
tree53ab6c019a5ecafe564b0c744b4a61d57cd2716a
parentd857b21d4fec18aa71f9bec4343924053dd9f083
s3:blocking: use timeval_expired(&state->endtime) to stop processing

This is less racy than timeval_elapsed() > 0
as the current time is already expired and timeout = 0
will always work correct.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 5a841a43f9c4f862e2d7235429363b3066cf5850)
source3/smbd/blocking.c