aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/certcheck.c')
-rw-r--r--sm/certcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/certcheck.c b/sm/certcheck.c
index cf9495a58..d04a86588 100644
--- a/sm/certcheck.c
+++ b/sm/certcheck.c
@@ -82,7 +82,7 @@ do_encode_md (gcry_md_hd_t md, int algo, int pkalgo, unsigned int nbits,
if ( pkalgo == GCRY_PK_ECC )
{
qbits0 = gcry_pk_get_nbits (pkey);
- qbits = qbits0 == 521? 512 : qbits;
+ qbits = qbits0 == 521? 512 : qbits0;
}
else
qbits0 = qbits = get_dsa_qbits (pkey);