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
d96236b5
Commit
d96236b5
authored
Jan 02, 2003
by
Hallvard Furuseth
Browse files
Fix attribute value parsing in objectIdentifierFirstComponentMatch().
parent
3dea614e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
d96236b5
...
...
@@ -3449,7 +3449,7 @@ objectIdentifierFirstComponentMatch(
int
rc
=
LDAP_SUCCESS
;
int
match
;
struct
berval
*
asserted
=
(
struct
berval
*
)
assertedValue
;
ber_len_t
i
;
ber_len_t
i
,
j
;
struct
berval
oid
;
if
(
value
->
bv_len
==
0
||
value
->
bv_val
[
0
]
!=
'('
/*')'*/
)
{
...
...
@@ -3463,8 +3463,8 @@ objectIdentifierFirstComponentMatch(
/* grab next word */
oid
.
bv_val
=
&
value
->
bv_val
[
i
];
oid
.
bv_len
=
value
->
bv_len
-
i
;
for
(
i
=
1
;
ASCII_SPACE
(
value
->
bv_val
[
i
])
&&
i
<
oid
.
bv_len
;
i
++
)
{
j
=
value
->
bv_len
-
i
;
for
(
i
=
0
;
!
ASCII_SPACE
(
oid
.
bv_val
[
i
])
&&
i
<
j
;
i
++
)
{
/* empty */
}
oid
.
bv_len
=
i
;
...
...
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