diff options
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; |