mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
warn in case of error
This commit is contained in:
parent
ffc69eadde
commit
7420472b42
@ -245,10 +245,12 @@ do_random( char *uri, char *manager, struct berval *passwd,
|
|||||||
case LDAP_SUCCESS:
|
case LDAP_SUCCESS:
|
||||||
nvalues = ldap_count_entries( ld, res );
|
nvalues = ldap_count_entries( ld, res );
|
||||||
if ( nvalues == 0 ) {
|
if ( nvalues == 0 ) {
|
||||||
|
if ( rc ) {
|
||||||
|
tester_ldap_error( ld, "ldap_search_ext_s" );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
values = malloc( ( nvalues + 1 ) * sizeof( char * ) );
|
values = malloc( ( nvalues + 1 ) * sizeof( char * ) );
|
||||||
for ( i = 0, e = ldap_first_entry( ld, res ); e != NULL; i++, e = ldap_next_entry( ld, e ) )
|
for ( i = 0, e = ldap_first_entry( ld, res ); e != NULL; i++, e = ldap_next_entry( ld, e ) )
|
||||||
{
|
{
|
||||||
|
@ -252,6 +252,9 @@ do_random( char *uri, char *manager, struct berval *passwd,
|
|||||||
case LDAP_TIMELIMIT_EXCEEDED:
|
case LDAP_TIMELIMIT_EXCEEDED:
|
||||||
case LDAP_SUCCESS:
|
case LDAP_SUCCESS:
|
||||||
if ( ldap_count_entries( ld, res ) == 0 ) {
|
if ( ldap_count_entries( ld, res ) == 0 ) {
|
||||||
|
if ( rc ) {
|
||||||
|
tester_ldap_error( ld, "ldap_search_ext_s" );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user