Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
522761dc
Commit
522761dc
authored
May 24, 2000
by
Kurt Zeilenga
Browse files
SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find
parent
2e0c16b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/compare.c
View file @
522761dc
...
...
@@ -99,7 +99,7 @@ ldbm_back_compare(
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for
(
a
=
attrs_find
(
e
->
e_attrs
,
ava
->
aa_desc
);
a
!=
NULL
;
a
=
attrs_find
(
a
,
ava
->
aa_desc
))
a
=
attrs_find
(
a
->
a_next
,
ava
->
aa_desc
))
#else
if
((
a
=
attr_find
(
e
->
e_attrs
,
ava
->
ava_type
))
!=
NULL
)
#endif
...
...
servers/slapd/filterentry.c
View file @
522761dc
...
...
@@ -219,7 +219,7 @@ test_ava_filter(
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for
(
a
=
attrs_find
(
e
->
e_attrs
,
ava
->
aa_desc
);
a
!=
NULL
;
a
=
attrs_find
(
a
,
ava
->
aa_desc
)
)
a
=
attrs_find
(
a
->
a_next
,
ava
->
aa_desc
)
)
#else
a
=
attr_find
(
e
->
e_attrs
,
ava
->
ava_type
);
if
(
a
!=
NULL
)
...
...
servers/slapd/tools/slapindex.c
View file @
522761dc
...
...
@@ -127,7 +127,7 @@ main( int argc, char **argv )
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for
(
attr
=
attrs_find
(
e
->
e_attrs
,
desc
);
attr
!=
NULL
;
attr
=
attrs_find
(
attr
,
desc
)
)
attr
=
attrs_find
(
attr
->
a_next
,
desc
)
)
#else
if
((
attr
=
attr_find
(
e
->
e_attrs
,
type
))
!=
NULL
)
#endif
...
...
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