diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-30 23:33:40 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-30 23:33:40 +0000 |
commit | 51ca375e7e640c6f1441d74abcda731ef7306d0c (patch) | |
tree | 8b661d70f98b8d819edea5f777117ec7be03fab7 /crypto/asn1/a_bytes.c | |
parent | 1749d8a039e637a6ab06f30cd0351605b44dc625 (diff) |
Seek out and destroy another evil cast.
Diffstat (limited to 'crypto/asn1/a_bytes.c')
-rw-r--r-- | crypto/asn1/a_bytes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asn1/a_bytes.c b/crypto/asn1/a_bytes.c index c894f5664c..47a88aa952 100644 --- a/crypto/asn1/a_bytes.c +++ b/crypto/asn1/a_bytes.c @@ -124,7 +124,7 @@ ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, unsigned char **pp, else s=NULL; - if (ret->data != NULL) Free((char *)ret->data); + if (ret->data != NULL) Free(ret->data); ret->length=(int)len; ret->data=s; ret->type=tag; @@ -218,7 +218,7 @@ ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, unsigned char **pp, long length, { if ((ret->length < len) || (ret->data == NULL)) { - if (ret->data != NULL) Free((char *)ret->data); + if (ret->data != NULL) Free(ret->data); s=(unsigned char *)Malloc((int)len + 1); if (s == NULL) { @@ -235,7 +235,7 @@ ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, unsigned char **pp, long length, else { s=NULL; - if (ret->data != NULL) Free((char *)ret->data); + if (ret->data != NULL) Free(ret->data); } ret->length=(int)len; |