From b4c2cf250d16b7226cb861dc556f06090ca0a926 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 5 Feb 2007 10:10:24 +0000 Subject: [PATCH] Fairly sure this is what the TIMEOUT option should always have been for --- libraries/libldap/result.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 82686b3c96..05d7aece47 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -275,6 +275,10 @@ wait4msg( LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex ); #endif + if ( timeout == NULL ) { + timeout = ld->ld_options.ldo_tm_api; + } + #ifdef LDAP_DEBUG if ( timeout == NULL ) { Debug( LDAP_DEBUG_TRACE, "wait4msg ld %p msgid %d (infinite timeout)\n", -- 2.39.5