mirror of git://anongit.mindrot.org/openssh.git
Extra brackets around sizeof() in bcrypt.
Prevents following warning from clang 10: bcrypt_pbkdf.c:94:40: error: expression does not compute the number of elements in this array; element type is ´uint32_tÂ[...] place parentheses around the ´sizeof(uint64_t)´ expression to silence this warning
This commit is contained in:
parent
9e06572959
commit
1babb8bb14
|
@ -91,7 +91,7 @@ bcrypt_hash(u_int8_t *sha2pass, u_int8_t *sha2salt, u_int8_t *out)
|
||||||
cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext),
|
cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext),
|
||||||
&j);
|
&j);
|
||||||
for (i = 0; i < 64; i++)
|
for (i = 0; i < 64; i++)
|
||||||
blf_enc(&state, cdata, sizeof(cdata) / sizeof(uint64_t));
|
blf_enc(&state, cdata, sizeof(cdata) / (sizeof(uint64_t)));
|
||||||
|
|
||||||
/* copy out */
|
/* copy out */
|
||||||
for (i = 0; i < BCRYPT_WORDS; i++) {
|
for (i = 0; i < BCRYPT_WORDS; i++) {
|
||||||
|
|
Loading…
Reference in New Issue