From d91d59421f10ec53c3301895d8fb5e8fca19809c Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Thu, 14 Sep 2017 18:48:04 +0200 Subject: [PATCH] fix de-referencing stat before checking for NULL --- src/pk/dsa/dsa_verify_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pk/dsa/dsa_verify_key.c b/src/pk/dsa/dsa_verify_key.c index 2737cdd..a70da9f 100644 --- a/src/pk/dsa/dsa_verify_key.c +++ b/src/pk/dsa/dsa_verify_key.c @@ -52,9 +52,9 @@ int dsa_int_validate_pqg(dsa_key *key, int *stat) void *tmp1, *tmp2; int err; - *stat = 0; LTC_ARGCHK(key != NULL); LTC_ARGCHK(stat != NULL); + *stat = 0; /* check q-order */ if ( key->qord >= LTC_MDSA_MAX_GROUP || key->qord <= 15 ||