summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/d2i_r_pr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_r_pr.c')
-rw-r--r--src/lib/libcrypto/asn1/d2i_r_pr.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_r_pr.c b/src/lib/libcrypto/asn1/d2i_r_pr.c
index 18f11b6f5e..6c8a45f821 100644
--- a/src/lib/libcrypto/asn1/d2i_r_pr.c
+++ b/src/lib/libcrypto/asn1/d2i_r_pr.c
@@ -107,7 +107,7 @@ RSA *d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length)
107 if ((ret->iqmp=BN_bin2bn(bs->data,bs->length,ret->iqmp)) == NULL) 107 if ((ret->iqmp=BN_bin2bn(bs->data,bs->length,ret->iqmp)) == NULL)
108 goto err_bn; 108 goto err_bn;
109 109
110 ASN1_INTEGER_free(bs); 110 M_ASN1_INTEGER_free(bs);
111 111
112 M_ASN1_D2I_Finish_2(a); 112 M_ASN1_D2I_Finish_2(a);
113err_bn: 113err_bn:
@@ -115,7 +115,14 @@ err_bn:
115err: 115err:
116 ASN1err(ASN1_F_D2I_RSAPRIVATEKEY,i); 116 ASN1err(ASN1_F_D2I_RSAPRIVATEKEY,i);
117 if ((ret != NULL) && ((a == NULL) || (*a != ret))) RSA_free(ret); 117 if ((ret != NULL) && ((a == NULL) || (*a != ret))) RSA_free(ret);
118 if (bs != NULL) ASN1_INTEGER_free(bs); 118 if (bs != NULL) M_ASN1_INTEGER_free(bs);
119
119 return(NULL); 120 return(NULL);
120 } 121 }
122#else /* !NO_RSA */
123
124# if PEDANTIC
125static void *dummy=&dummy;
126# endif
127
121#endif 128#endif