From 93ea06463c86af207b1ce973cdaf2663a3b3c9e1 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Thu, 5 Dec 2024 12:55:16 +0100 Subject: [PATCH] fix err != err --- dsa.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsa.go b/dsa.go index 73a2cd76..53a01ec0 100644 --- a/dsa.go +++ b/dsa.go @@ -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: