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
e25f6ef0
Commit
e25f6ef0
authored
Jan 17, 2002
by
Kurt Zeilenga
Browse files
Add a safety check to bvcasechr
parent
1ea0d20e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
e25f6ef0
...
...
@@ -86,6 +86,8 @@ static char *bvcasechr( struct berval *bv, int c, ber_len_t *len )
ber_len_t
i
;
int
lower
=
TOLOWER
(
c
);
int
upper
=
TOUPPER
(
c
);
if
(
c
==
0
)
return
NULL
;
for
(
i
=
0
;
i
<
bv
->
bv_len
;
i
++
)
{
if
(
upper
==
bv
->
bv_val
[
i
]
||
lower
==
bv
->
bv_val
[
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