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
5e5e0cd9
Commit
5e5e0cd9
authored
Apr 28, 2004
by
Pierangelo Masarati
Browse files
quick hack for ITS#3118; may need work
parent
35643b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
5e5e0cd9
...
...
@@ -2791,18 +2791,18 @@ firstComponentNormalize(
{
int
rc
;
struct
berval
oid
;
ber_len_t
len
;
ber_len_t
len
=
0
;
if
(
val
->
bv_len
<
3
)
return
LDAP_INVALID_SYNTAX
;
if
(
val
->
bv_len
==
0
)
return
LDAP_INVALID_SYNTAX
;
if
(
val
->
bv_val
[
0
]
!
=
'('
/*')'*/
&&
val
->
bv_val
[
0
]
!
=
'{'
/*'}'*/
)
if
(
val
->
bv_val
[
0
]
=
=
'('
/*')'*/
||
val
->
bv_val
[
0
]
=
=
'{'
/*'}'*/
)
{
return
LDAP_INVALID_SYNTAX
;
len
=
1
;
}
/* trim leading white space */
for
(
len
=
1
;
for
(
;
len
<
val
->
bv_len
&&
ASCII_SPACE
(
val
->
bv_val
[
len
]);
len
++
)
{
...
...
Write
Preview
Supports
Markdown
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