projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memset, memcpy, sizeof consistency fixes
[openssl.git]
/
crypto
/
asn1
/
a_enum.c
diff --git
a/crypto/asn1/a_enum.c
b/crypto/asn1/a_enum.c
index 4abd80c12250f8aef4c87010157c2b977d9ccc39..aed3de5feefb3572078a216c2b03ffe9177047f0 100644
(file)
--- a/
crypto/asn1/a_enum.c
+++ b/
crypto/asn1/a_enum.c
@@
-77,7
+77,7
@@
int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v)
if (a->length < (int)(sizeof(long) + 1)) {
OPENSSL_free(a->data);
if ((a->data = OPENSSL_malloc(sizeof(long) + 1)) != NULL)
if (a->length < (int)(sizeof(long) + 1)) {
OPENSSL_free(a->data);
if ((a->data = OPENSSL_malloc(sizeof(long) + 1)) != NULL)
- memset(
(char *)
a->data, 0, sizeof(long) + 1);
+ memset(a->data, 0, sizeof(long) + 1);
}
if (a->data == NULL) {
ASN1err(ASN1_F_ASN1_ENUMERATED_SET, ERR_R_MALLOC_FAILURE);
}
if (a->data == NULL) {
ASN1err(ASN1_F_ASN1_ENUMERATED_SET, ERR_R_MALLOC_FAILURE);