Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
30e96c77
Commit
30e96c77
authored
Jan 17, 2018
by
Francis Dupont
Browse files
bcmp -> memcmp
parent
1f33a989
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/isc/md5.c
View file @
30e96c77
...
...
@@ -374,7 +374,7 @@ isc_md5_check(isc_boolean_t testing) {
/*
* Must return true in standard case, should return false for testing.
*/
return
(
ISC_TF
(
b
cmp
(
digest
,
expected
,
ISC_MD5_DIGESTLENGTH
)
==
0
));
return
(
ISC_TF
(
mem
cmp
(
digest
,
expected
,
ISC_MD5_DIGESTLENGTH
)
==
0
));
}
#else
/* !PK11_MD5_DISABLE */
...
...
lib/isc/sha1.c
View file @
30e96c77
...
...
@@ -445,5 +445,5 @@ isc_sha1_check(isc_boolean_t testing) {
/*
* Must return true in standard case, should return false for testing.
*/
return
(
ISC_TF
(
b
cmp
(
digest
,
expected
,
ISC_SHA1_DIGESTLENGTH
)
==
0
));
return
(
ISC_TF
(
mem
cmp
(
digest
,
expected
,
ISC_SHA1_DIGESTLENGTH
)
==
0
));
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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