]> git.sur5r.net Git - openldap/commitdiff
Fairly sure this is what the TIMEOUT option should always have been for
authorHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 10:10:24 +0000 (10:10 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 10:10:24 +0000 (10:10 +0000)
libraries/libldap/result.c

index 82686b3c963cd1a41078c138a9972eabd44512cb..05d7aece47e66c37e2216cb511a0b910689b31d6 100644 (file)
@@ -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",