mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-14 16:23:23 -05:00
ITS#5291, more for rev 1.79 search timeouts
This commit is contained in:
parent
d5ef1f252d
commit
8ddc2dd773
1 changed files with 2 additions and 2 deletions
|
|
@ -358,7 +358,7 @@ ldap_search_st(
|
|||
== -1 )
|
||||
return( ld->ld_errno );
|
||||
|
||||
if ( ldap_result( ld, msgid, LDAP_MSG_ALL, timeout, res ) == -1 )
|
||||
if ( ldap_result( ld, msgid, LDAP_MSG_ALL, timeout, res ) == -1 || !*res )
|
||||
return( ld->ld_errno );
|
||||
|
||||
if ( ld->ld_errno == LDAP_TIMEOUT ) {
|
||||
|
|
@ -386,7 +386,7 @@ ldap_search_s(
|
|||
== -1 )
|
||||
return( ld->ld_errno );
|
||||
|
||||
if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, res ) == -1 || !res )
|
||||
if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, res ) == -1 || !*res )
|
||||
return( ld->ld_errno );
|
||||
|
||||
return( ldap_result2error( ld, *res, 0 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue