fix de-referencing stat before checking for NULL

This commit is contained in:
Karel Miko 2017-09-14 18:48:04 +02:00
parent 444d9f3fb7
commit d91d59421f

View File

@ -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 ||