]> git.sur5r.net Git - openldap/commitdiff
warn in case of error
authorPierangelo Masarati <ando@openldap.org>
Wed, 5 Apr 2006 18:20:00 +0000 (18:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 5 Apr 2006 18:20:00 +0000 (18:20 +0000)
tests/progs/slapd-read.c
tests/progs/slapd-search.c

index 134b164184650c4f730b005443826b70adff78a8..9bece47cd108dc181a1f0966b8d96b1800d10c3c 100644 (file)
@@ -245,10 +245,12 @@ do_random( char *uri, char *manager, struct berval *passwd,
        case LDAP_SUCCESS:
                nvalues = ldap_count_entries( ld, res );
                if ( nvalues == 0 ) {
+                       if ( rc ) {
+                               tester_ldap_error( ld, "ldap_search_ext_s" );
+                       }
                        break;
                }
 
-
                values = malloc( ( nvalues + 1 ) * sizeof( char * ) );
                for ( i = 0, e = ldap_first_entry( ld, res ); e != NULL; i++, e = ldap_next_entry( ld, e ) )
                {
index 0f810d7a516b0a9870f6f3300052a9aaed6148cb..8504f327105e3bd821907ba733f73331417141b5 100644 (file)
@@ -252,6 +252,9 @@ do_random( char *uri, char *manager, struct berval *passwd,
        case LDAP_TIMELIMIT_EXCEEDED:
        case LDAP_SUCCESS:
                if ( ldap_count_entries( ld, res ) == 0 ) {
+                       if ( rc ) {
+                               tester_ldap_error( ld, "ldap_search_ext_s" );
+                       }
                        break;
                }