diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_dec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c index c8b379f371..b524104d91 100644 --- a/src/lib/libcrypto/asn1/tasn_dec.c +++ b/src/lib/libcrypto/asn1/tasn_dec.c | |||
@@ -951,8 +951,7 @@ asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, | |||
951 | } | 951 | } |
952 | /* If we've already allocated a buffer use it */ | 952 | /* If we've already allocated a buffer use it */ |
953 | if (*free_cont) { | 953 | if (*free_cont) { |
954 | if (stmp->data) | 954 | free(stmp->data); |
955 | free(stmp->data); | ||
956 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ | 955 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ |
957 | stmp->length = len; | 956 | stmp->length = len; |
958 | *free_cont = 0; | 957 | *free_cont = 0; |