Skip to content

Commit

Permalink
fix err != err
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Dec 5, 2024
1 parent 13e70e5 commit 93ea064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ func GenerateDSAParameters(l, n int) (DSAParameters, error) {
ossl.BN_free(q)
ossl.BN_free(g)
}()
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_P, &p); err != err {
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_P, &p); err != nil {
return DSAParameters{}, err
}
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_Q, &q); err != err {
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_Q, &q); err != nil {
return DSAParameters{}, err
}
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_G, &g); err != err {
if err := getBnParam(pkey, ossl.OSSL_PKEY_PARAM_FFC_G, &g); err != nil {
return DSAParameters{}, err
}
default:
Expand Down

0 comments on commit 93ea064

Please sign in to comment.