Skip to content

Commit

Permalink
fixup! Check DSA parameters for excessive sizes before validating
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed May 14, 2024
1 parent 1f125d3 commit a8f70c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/dsa/dsa_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret)
if (!dsa_precheck_params(dsa, ret))
return 0;

return (dsa->params.q != NULL
&& ossl_ffc_validate_private_key(dsa->params.q, priv_key, ret));
return ossl_ffc_validate_private_key(dsa->params.q, priv_key, ret);
}

/*
Expand Down

0 comments on commit a8f70c8

Please sign in to comment.