summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_x509.c
diff options
context:
space:
mode:
authorderaadt <>2014-04-21 11:37:41 +0000
committerderaadt <>2014-04-21 11:37:41 +0000
commita13698710d1bf0bac4832733da5c86886601b5d4 (patch)
treead42acc3896c553cb79781bc3a1ead69a74d55a3 /src/lib/libcrypto/asn1/t_x509.c
parent6a6b6afb12953d4537a41790daa6abaad39258c5 (diff)
downloadopenbsd-a13698710d1bf0bac4832733da5c86886601b5d4.tar.gz
openbsd-a13698710d1bf0bac4832733da5c86886601b5d4.tar.bz2
openbsd-a13698710d1bf0bac4832733da5c86886601b5d4.zip
improve realloc/calloc/malloc patterns; ok guenther
Diffstat (limited to 'src/lib/libcrypto/asn1/t_x509.c')
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index de3fa22171..81333d67cf 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -265,7 +265,7 @@ int X509_ocspid_print (BIO *bp, X509 *x)
265 if (BIO_printf(bp, " Subject OCSP hash: ") <= 0) 265 if (BIO_printf(bp, " Subject OCSP hash: ") <= 0)
266 goto err; 266 goto err;
267 derlen = i2d_X509_NAME(x->cert_info->subject, NULL); 267 derlen = i2d_X509_NAME(x->cert_info->subject, NULL);
268 if ((der = dertmp = (unsigned char *)malloc (derlen)) == NULL) 268 if ((der = dertmp = malloc(derlen)) == NULL)
269 goto err; 269 goto err;
270 i2d_X509_NAME(x->cert_info->subject, &dertmp); 270 i2d_X509_NAME(x->cert_info->subject, &dertmp);
271 271