Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
e4653bde
Commit
e4653bde
authored
May 30, 2001
by
Kurt Zeilenga
Browse files
Allow empty numericString matching
parent
cc6fab31
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
e4653bde
...
...
@@ -440,6 +440,7 @@ bitStringValidate(
if
(
in
->
bv_len
<
3
)
{
return
LDAP_INVALID_SYNTAX
;
}
if
(
in
->
bv_val
[
0
]
!=
'B'
||
in
->
bv_val
[
1
]
!=
'\''
||
in
->
bv_val
[
in
->
bv_len
-
1
]
!=
'\''
)
...
...
@@ -3644,8 +3645,6 @@ numericStringValidate(
{
ber_len_t
i
;
/* disallow empty numeric strings */
for
(
i
=
0
;
i
<
in
->
bv_len
;
i
++
)
{
if
(
!
SLAP_NUMERIC
(
in
->
bv_val
[
i
])
)
{
return
LDAP_INVALID_SYNTAX
;
...
...
@@ -3680,7 +3679,7 @@ numericStringNormalize(
}
}
assert
(
newval
->
bv_val
<
p
);
assert
(
newval
->
bv_val
=
<
p
);
assert
(
q
<=
p
);
/* null terminate */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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