Fairly sure this is what the TIMEOUT option should always have been for

This commit is contained in:
Howard Chu 2007-02-05 10:10:24 +00:00
parent 55b29bedf8
commit b4c2cf250d

View File

@ -275,6 +275,10 @@ wait4msg(
LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex ); LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex );
#endif #endif
if ( timeout == NULL ) {
timeout = ld->ld_options.ldo_tm_api;
}
#ifdef LDAP_DEBUG #ifdef LDAP_DEBUG
if ( timeout == NULL ) { if ( timeout == NULL ) {
Debug( LDAP_DEBUG_TRACE, "wait4msg ld %p msgid %d (infinite timeout)\n", Debug( LDAP_DEBUG_TRACE, "wait4msg ld %p msgid %d (infinite timeout)\n",