ldb-samba: fix the timeout setup in ildb_request_send()
commit5db9f865bca818da8d2334208f3141f7f5c7286d
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jan 2016 07:53:57 +0000 (22 08:53 +0100)
committerGarming Sam <garming@samba.org>
Wed, 17 Feb 2016 02:43:22 +0000 (17 03:43 +0100)
treef503037e2fbbd77e45aa00ec1b5b5c228edf03b3
parentcd77b0bba434139e13db5ec2096ca99b6b3f084d
ldb-samba: fix the timeout setup in ildb_request_send()

We need to use the startime as reference not the current time.

We also allow timeout == -1 to indicate no timeout at all.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldb_ildap.c