Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
36951ced
Commit
36951ced
authored
Nov 11, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Dec 02, 2020
Browse files
ITS#9391 remove asserts in UUIDNormalize()
parent
76df30a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
36951ced
...
...
@@ -2940,12 +2940,14 @@ UUIDNormalize(
if
(
SLAP_MR_IS_DENORMALIZE
(
usage
)
)
{
/* NOTE: must be a normalized UUID */
assert
(
val
->
bv_len
==
16
);
if
(
val
->
bv_len
!=
16
)
return
LDAP_INVALID_SYNTAX
;
normalized
->
bv_val
=
slap_sl_malloc
(
LDAP_LUTIL_UUIDSTR_BUFSIZE
,
ctx
);
normalized
->
bv_len
=
lutil_uuidstr_from_normalized
(
val
->
bv_val
,
val
->
bv_len
,
normalized
->
bv_val
,
LDAP_LUTIL_UUIDSTR_BUFSIZE
);
assert
(
normalized
->
bv_len
==
STRLENOF
(
"BADBADBA-DBAD-0123-4567-BADBADBADBAD"
)
);
if
(
normalized
->
bv_len
!=
STRLENOF
(
"BADBADBA-DBAD-0123-4567-BADBADBADBAD"
)
)
return
LDAP_INVALID_SYNTAX
;
return
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