Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
5a6a9303
Commit
5a6a9303
authored
Aug 11, 2015
by
Ondřej Kuzník
Committed by
Howard Chu
Oct 25, 2015
Browse files
ITS
#8215
Do not crash on an empty entry
parent
b47f32f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapmodify.c
View file @
5a6a9303
...
...
@@ -480,8 +480,6 @@ slapmodify( int argc, char **argv )
a
=
attr_find
(
e
->
e_attrs
,
slap_schema
.
si_ad_entryUUID
);
if
(
a
!=
NULL
)
{
vals
[
0
].
bv_len
=
lutil_uuidstr
(
uuidbuf
,
sizeof
(
uuidbuf
)
);
vals
[
0
].
bv_val
=
uuidbuf
;
if
(
a
->
a_vals
!=
a
->
a_nvals
)
{
SLAP_FREE
(
a
->
a_nvals
[
0
].
bv_val
);
SLAP_FREE
(
a
->
a_nvals
);
...
...
@@ -492,6 +490,8 @@ slapmodify( int argc, char **argv )
a
->
a_nvals
=
NULL
;
a
->
a_numvals
=
0
;
}
vals
[
0
].
bv_len
=
lutil_uuidstr
(
uuidbuf
,
sizeof
(
uuidbuf
)
);
vals
[
0
].
bv_val
=
uuidbuf
;
attr_merge_normalize_one
(
e
,
slap_schema
.
si_ad_entryUUID
,
vals
,
NULL
);
a
=
attr_find
(
e
->
e_attrs
,
slap_schema
.
si_ad_creatorsName
);
...
...
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