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 14:23:41 +0000 (14:23 +0000)
commit5a841a43f9c4f862e2d7235429363b3066cf5850
treed466b88ce67a8c72daebeeccfca2d427a52507a0
parentd3bc0199697fd7d6e04479321ca644a227bc4ede
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>
source3/smbd/blocking.c