Skip to content
Snippets Groups Projects
Commit a256afcd authored by Howard Chu's avatar Howard Chu
Browse files

Exit if no values returned in do_random

parent 52aabd2d
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,12 @@ do_random( char *uri, char *manager, struct berval *passwd,
ldap_msgfree( res );
if ( !values ) {
fprintf( stderr, " PID=%ld - Search base=\"%s\" filter=\"%s\" got %d values.\n",
(long) pid, sbase, filter, nvalues );
exit(EXIT_FAIL);
}
if ( do_retry == maxretries ) {
fprintf( stderr, " PID=%ld - Search base=\"%s\" filter=\"%s\" got %d values.\n",
(long) pid, sbase, filter, nvalues );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment