Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit d31d845

Browse files
author
Constanza Heath
committed
Separate sanity test for consistent coding style in if block
Signed-off-by: Constanza Heath <[email protected]>
1 parent 397e7d4 commit d31d845

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/hmac_prng.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ int32_t tc_hmac_prng_reseed (
138138
seedlen < MIN_SLEN ||
139139
seedlen > MAX_SLEN) {
140140
return TC_FAIL;
141-
} else if (additional_input != (const uint8_t *) 0) {
141+
}
142+
143+
if (additional_input != (const uint8_t *) 0) {
142144
/* Abort if additional_input is provided but has inappropriate length */
143145
if (additionallen == 0 ||
144146
additionallen > MAX_ALEN) {

0 commit comments

Comments
 (0)