Skip to content

Commit

Permalink
fix erroreus calculation with null in salt (#597)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Reshke <[email protected]>
  • Loading branch information
reshke and Kirill Reshke authored Mar 21, 2024
1 parent bf05761 commit 0045ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/scram.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int calculate_client_proof(od_scram_state_t *scram_state,
od_scram_ctx_t *ctx = od_scram_HMAC_create();
const char *errstr = NULL;

od_scram_SaltedPassword(prepared_password, salt, strlen(salt),
od_scram_SaltedPassword(prepared_password, salt, SCRAM_DEFAULT_SALT_LEN,
iterations, scram_state->salted_password,
&errstr);

Expand Down

0 comments on commit 0045ffe

Please sign in to comment.