libcli/cldap/cldap.c: don't hand huge values to tevent_timeval_add usecs
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Jun 2011 02:50:08 +0000 (12:20 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Jun 2011 08:38:47 +0000 (10:38 +0200)
commitc29069e079018853867d643b8de604edd95c94d9
tree179791a97ea4e9087958f22b07ea39660a285ed8
parent0204ae6229bae3573b3194c3f657c8f385c0b940
libcli/cldap/cldap.c: don't hand huge values to tevent_timeval_add usecs

state->request.delay is two million here, resulting in an invalid timeval.
Since tevent doesn't have a convenient wrapper to add arbitrary usecs,
do the arithmetic here (it's the sole caller of this function).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libcli/cldap/cldap.c