Merge branch 'master' of git://git.denx.de/u-boot-atmel
[oweals/u-boot.git] / lib / rsa / rsa-sign.c
index f4d433867a2d28ebcf2827c5ead4a8c8c92d6cc2..5d9716f01349f4074653f2735fa3e6204ddba8e7 100644 (file)
@@ -76,6 +76,7 @@ static int rsa_get_pub_key(const char *keydir, const char *name, RSA **rsap)
        rsa = EVP_PKEY_get1_RSA(key);
        if (!rsa) {
                rsa_err("Couldn't convert to a RSA style key");
+               ret = -EINVAL;
                goto err_rsa;
        }
        fclose(f);