rsa_test: add return value check
Fixes
@@ -231,7 +231,9 @@ static int pad_unknown(void)
static int rsa_setkey(RSA** key, unsigned char* ctext, int idx)
{
int clen = 0;
+
*key = RSA_new();
+ if (*key != NULL)
switch (idx) {
case 0:
clen = key1(*key, ctext);
