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
349bec7c
Commit
349bec7c
authored
May 16, 2000
by
Kurt Zeilenga
Browse files
Fix desc not NULL bugs
parent
8d407bc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/compare.c
View file @
349bec7c
...
...
@@ -98,6 +98,7 @@ do_compare(
}
#ifdef SLAPD_SCHEMA_NOT_COMPAT
ava
.
aa_desc
=
NULL
;
rc
=
slap_bv2ad
(
&
desc
,
&
ava
.
aa_desc
,
&
text
);
if
(
rc
!=
LDAP_SUCCESS
)
{
send_ldap_result
(
conn
,
op
,
rc
,
NULL
,
...
...
servers/slapd/filter.c
View file @
349bec7c
...
...
@@ -372,6 +372,7 @@ get_substring_filter(
}
#ifdef SLAPD_SCHEMA_NOT_COMPAT
f
->
f_sub_desc
=
NULL
;
rc
=
slap_bv2ad
(
&
type
,
&
f
->
f_sub_desc
,
text
);
ch_free
(
type
.
bv_val
);
...
...
servers/slapd/schema_init.c
View file @
349bec7c
...
...
@@ -688,10 +688,14 @@ schema_prep( void )
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for
(
i
=
0
;
ad_map
[
i
].
ssm_type
;
i
++
)
{
int
rc
=
slap_str2ad
(
ad_map
[
i
].
ssm_type
,
(
AttributeDescription
**
)
&
(((
char
*
)
&
slap_schema
)[
ad_map
[
i
].
ssm_offset
]),
&
text
);
int
rc
;
AttributeDescription
**
adp
=
(
AttributeDescription
**
)
&
(((
char
*
)
&
slap_schema
)[
ad_map
[
i
].
ssm_offset
]);
*
adp
=
NULL
;
rc
=
slap_str2ad
(
ad_map
[
i
].
ssm_type
,
adp
,
&
text
);
if
(
rc
!=
LDAP_SUCCESS
)
{
fprintf
(
stderr
,
...
...
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