Skip to content

Commit

Permalink
style: manual initial value fix (#4449)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmayclin authored Mar 5, 2024
1 parent 5b83319 commit 770d3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/sidetrail/working/patches/cbc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ index 401ab760..f39cc7e2 100644
*/
int s2n_verify_cbc(struct s2n_connection *conn, struct s2n_hmac_state *hmac, struct s2n_blob *decrypted)
{
- uint8_t mac_digest_size;
- uint8_t mac_digest_size = 0;
- POSIX_GUARD(s2n_hmac_digest_size(hmac->alg, &mac_digest_size));
+ uint8_t mac_digest_size = DIGEST_SIZE;
+ //POSIX_GUARD(s2n_hmac_digest_size(hmac->alg, &mac_digest_size));
Expand Down
2 changes: 1 addition & 1 deletion tls/s2n_cbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*/
int s2n_verify_cbc(struct s2n_connection *conn, struct s2n_hmac_state *hmac, struct s2n_blob *decrypted)
{
uint8_t mac_digest_size;
uint8_t mac_digest_size = 0;
POSIX_GUARD(s2n_hmac_digest_size(hmac->alg, &mac_digest_size));

/* The record has to be at least big enough to contain the MAC,
Expand Down

0 comments on commit 770d3f3

Please sign in to comment.