diff options
author | deraadt <> | 2014-04-21 11:37:41 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-21 11:37:41 +0000 |
commit | a13698710d1bf0bac4832733da5c86886601b5d4 (patch) | |
tree | ad42acc3896c553cb79781bc3a1ead69a74d55a3 /src/lib/libcrypto/asn1/x_info.c | |
parent | 6a6b6afb12953d4537a41790daa6abaad39258c5 (diff) | |
download | openbsd-a13698710d1bf0bac4832733da5c86886601b5d4.tar.gz openbsd-a13698710d1bf0bac4832733da5c86886601b5d4.tar.bz2 openbsd-a13698710d1bf0bac4832733da5c86886601b5d4.zip |
improve realloc/calloc/malloc patterns; ok guenther
Diffstat (limited to 'src/lib/libcrypto/asn1/x_info.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_info.c b/src/lib/libcrypto/asn1/x_info.c index 4d3e2ebd17..2d1bf0d22d 100644 --- a/src/lib/libcrypto/asn1/x_info.c +++ b/src/lib/libcrypto/asn1/x_info.c | |||
@@ -67,7 +67,7 @@ X509_INFO_new(void) | |||
67 | { | 67 | { |
68 | X509_INFO *ret = NULL; | 68 | X509_INFO *ret = NULL; |
69 | 69 | ||
70 | ret = (X509_INFO *)malloc(sizeof(X509_INFO)); | 70 | ret = malloc(sizeof(X509_INFO)); |
71 | if (ret == NULL) { | 71 | if (ret == NULL) { |
72 | ASN1err(ASN1_F_X509_INFO_NEW, ERR_R_MALLOC_FAILURE); | 72 | ASN1err(ASN1_F_X509_INFO_NEW, ERR_R_MALLOC_FAILURE); |
73 | return (NULL); | 73 | return (NULL); |