diff options
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_prn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_prn.c b/src/lib/libcrypto/rsa/rsa_prn.c index 46e09dc117..12f600d674 100644 --- a/src/lib/libcrypto/rsa/rsa_prn.c +++ b/src/lib/libcrypto/rsa/rsa_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_prn.c,v 1.8 2022/11/08 12:59:36 tobhe Exp $ */ | 1 | /* $OpenBSD: rsa_prn.c,v 1.9 2022/11/08 19:19:08 tobhe Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -85,13 +85,13 @@ RSA_print(BIO *bp, const RSA *x, int off) | |||
85 | int ret = 0; | 85 | int ret = 0; |
86 | 86 | ||
87 | if ((pk = EVP_PKEY_new()) == NULL) | 87 | if ((pk = EVP_PKEY_new()) == NULL) |
88 | goto out; | 88 | goto err; |
89 | 89 | ||
90 | if (!EVP_PKEY_set1_RSA(pk, (RSA *)x)) | 90 | if (!EVP_PKEY_set1_RSA(pk, (RSA *)x)) |
91 | goto out; | 91 | goto err; |
92 | 92 | ||
93 | ret = EVP_PKEY_print_private(bp, pk, off, NULL); | 93 | ret = EVP_PKEY_print_private(bp, pk, off, NULL); |
94 | out: | 94 | err: |
95 | EVP_PKEY_free(pk); | 95 | EVP_PKEY_free(pk); |
96 | return ret; | 96 | return ret; |
97 | } | 97 | } |