Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
7420472b
Commit
7420472b
authored
Apr 05, 2006
by
Pierangelo Masarati
Browse files
warn in case of error
parent
ffc69ead
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/progs/slapd-read.c
View file @
7420472b
...
...
@@ -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
)
)
{
...
...
tests/progs/slapd-search.c
View file @
7420472b
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment