Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
95115944
Commit
95115944
authored
Dec 30, 2004
by
Kurt Zeilenga
Browse files
Cleanup
parent
e66a9624
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/attr.c
View file @
95115944
...
...
@@ -43,8 +43,9 @@
void
attr_free
(
Attribute
*
a
)
{
if
(
a
->
a_nvals
&&
a
->
a_nvals
!=
a
->
a_vals
)
if
(
a
->
a_nvals
&&
a
->
a_nvals
!=
a
->
a_vals
)
{
ber_bvarray_free
(
a
->
a_nvals
);
}
ber_bvarray_free
(
a
->
a_vals
);
free
(
a
);
}
...
...
servers/slapd/controls.c
View file @
95115944
...
...
@@ -1040,7 +1040,9 @@ static int parsePreRead (
an
[
i
].
an_oc_exclude
=
0
;
rc
=
slap_bv2ad
(
&
an
[
i
].
an_name
,
&
an
[
i
].
an_desc
,
&
dummy
);
if
(
rc
!=
LDAP_SUCCESS
&&
ctrl
->
ldctl_iscritical
)
{
rs
->
sr_text
=
dummy
?
dummy
:
"postread control: unknown attributeType"
;
rs
->
sr_text
=
dummy
?
dummy
:
"postread control: unknown attributeType"
;
return
rc
;
}
}
...
...
@@ -1096,7 +1098,9 @@ static int parsePostRead (
an
[
i
].
an_oc_exclude
=
0
;
rc
=
slap_bv2ad
(
&
an
[
i
].
an_name
,
&
an
[
i
].
an_desc
,
&
dummy
);
if
(
rc
!=
LDAP_SUCCESS
&&
ctrl
->
ldctl_iscritical
)
{
rs
->
sr_text
=
dummy
?
dummy
:
"postread control: unknown attributeType"
;
rs
->
sr_text
=
dummy
?
dummy
:
"postread control: unknown attributeType"
;
return
rc
;
}
}
...
...
servers/slapd/search.c
View file @
95115944
...
...
@@ -164,7 +164,8 @@ do_search(
op
->
ors_attrs
[
i
].
an_desc
=
NULL
;
op
->
ors_attrs
[
i
].
an_oc
=
NULL
;
op
->
ors_attrs
[
i
].
an_oc_exclude
=
0
;
slap_bv2ad
(
&
op
->
ors_attrs
[
i
].
an_name
,
&
op
->
ors_attrs
[
i
].
an_desc
,
&
dummy
);
slap_bv2ad
(
&
op
->
ors_attrs
[
i
].
an_name
,
&
op
->
ors_attrs
[
i
].
an_desc
,
&
dummy
);
}
if
(
get_ctrls
(
op
,
rs
,
1
)
!=
LDAP_SUCCESS
)
{
...
...
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