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
Joe Martin
OpenLDAP
Commits
10f74272
Commit
10f74272
authored
Jun 27, 2014
by
Ryan Tandy
Committed by
Quanah Gibson-Mount
Jul 22, 2014
Browse files
ITS#7851 contrib pw-sha2 fix int/size_t comparison
parent
a1968c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/slapd-modules/passwd/sha2/slapd-sha2.c
View file @
10f74272
...
...
@@ -244,7 +244,7 @@ static int chk_ssha256(
rc
=
lutil_b64_pton
(
passwd
->
bv_val
,
orig_pass
,
decode_len
);
if
(
rc
<=
sizeof
(
SHAdigest
)
)
{
if
(
rc
<=
(
int
)(
sizeof
(
SHAdigest
)
)
)
{
ber_memfree
(
orig_pass
);
return
LUTIL_PASSWD_ERR
;
}
...
...
@@ -332,7 +332,7 @@ static int chk_ssha384(
rc
=
lutil_b64_pton
(
passwd
->
bv_val
,
orig_pass
,
decode_len
);
if
(
rc
<=
sizeof
(
SHAdigest
)
)
{
if
(
rc
<=
(
int
)(
sizeof
(
SHAdigest
)
)
)
{
ber_memfree
(
orig_pass
);
return
LUTIL_PASSWD_ERR
;
}
...
...
@@ -420,7 +420,7 @@ static int chk_ssha512(
rc
=
lutil_b64_pton
(
passwd
->
bv_val
,
orig_pass
,
decode_len
);
if
(
rc
<=
sizeof
(
SHAdigest
)
)
{
if
(
rc
<=
(
int
)(
sizeof
(
SHAdigest
)
)
)
{
ber_memfree
(
orig_pass
);
return
LUTIL_PASSWD_ERR
;
}
...
...
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