summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/d2i_r_pu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_r_pu.c')
-rw-r--r--src/lib/libcrypto/asn1/d2i_r_pu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_r_pu.c b/src/lib/libcrypto/asn1/d2i_r_pu.c
index c4ae58b594..d1289f160e 100644
--- a/src/lib/libcrypto/asn1/d2i_r_pu.c
+++ b/src/lib/libcrypto/asn1/d2i_r_pu.c
@@ -81,7 +81,7 @@ RSA *d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length)
81 M_ASN1_D2I_get(bs,d2i_ASN1_INTEGER); 81 M_ASN1_D2I_get(bs,d2i_ASN1_INTEGER);
82 if ((ret->e=BN_bin2bn(bs->data,bs->length,ret->e)) == NULL) goto err_bn; 82 if ((ret->e=BN_bin2bn(bs->data,bs->length,ret->e)) == NULL) goto err_bn;
83 83
84 ASN1_INTEGER_free(bs); 84 M_ASN1_INTEGER_free(bs);
85 bs=NULL; 85 bs=NULL;
86 86
87 M_ASN1_D2I_Finish_2(a); 87 M_ASN1_D2I_Finish_2(a);
@@ -91,7 +91,13 @@ err_bn:
91err: 91err:
92 ASN1err(ASN1_F_D2I_RSAPUBLICKEY,i); 92 ASN1err(ASN1_F_D2I_RSAPUBLICKEY,i);
93 if ((ret != NULL) && ((a == NULL) || (*a != ret))) RSA_free(ret); 93 if ((ret != NULL) && ((a == NULL) || (*a != ret))) RSA_free(ret);
94 if (bs != NULL) ASN1_INTEGER_free(bs); 94 if (bs != NULL) M_ASN1_INTEGER_free(bs);
95 return(NULL); 95 return(NULL);
96 } 96 }
97#else /* !NO_RSA */
98
99# if PEDANTIC
100static void *dummy=&dummy;
101# endif
102
97#endif 103#endif