diff options
author | deraadt <> | 2014-06-07 14:41:57 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-07 14:41:57 +0000 |
commit | 6e812251158ecbc0733dba21489ebce1248ebb33 (patch) | |
tree | c0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/pem/pem_lib.c | |
parent | 369f4c90b9a7f7864572479745455d29b0777219 (diff) | |
download | openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.gz openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.bz2 openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.zip |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'src/lib/libcrypto/pem/pem_lib.c')
-rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c index 5938330d45..b2f4ae0c59 100644 --- a/src/lib/libcrypto/pem/pem_lib.c +++ b/src/lib/libcrypto/pem/pem_lib.c | |||
@@ -358,7 +358,7 @@ PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x, | |||
358 | } | 358 | } |
359 | /* dzise + 8 bytes are needed */ | 359 | /* dzise + 8 bytes are needed */ |
360 | /* actually it needs the cipher block size extra... */ | 360 | /* actually it needs the cipher block size extra... */ |
361 | data = (unsigned char *)malloc((unsigned int)dsize + 20); | 361 | data = malloc((unsigned int)dsize + 20); |
362 | if (data == NULL) { | 362 | if (data == NULL) { |
363 | PEMerr(PEM_F_PEM_ASN1_WRITE_BIO, ERR_R_MALLOC_FAILURE); | 363 | PEMerr(PEM_F_PEM_ASN1_WRITE_BIO, ERR_R_MALLOC_FAILURE); |
364 | goto err; | 364 | goto err; |