summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_ameth.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-07 14:41:57 +0000
committerderaadt <>2014-06-07 14:41:57 +0000
commit6e812251158ecbc0733dba21489ebce1248ebb33 (patch)
treec0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/rsa/rsa_ameth.c
parent369f4c90b9a7f7864572479745455d29b0777219 (diff)
downloadopenbsd-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/rsa/rsa_ameth.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c
index 2c7e39bb1d..f54c93c8f9 100644
--- a/src/lib/libcrypto/rsa/rsa_ameth.c
+++ b/src/lib/libcrypto/rsa/rsa_ameth.c
@@ -201,7 +201,7 @@ static int do_rsa_print(BIO *bp, const RSA *x, int off, int priv)
201 update_buflen(x->iqmp, &buf_len); 201 update_buflen(x->iqmp, &buf_len);
202 } 202 }
203 203
204 m=(unsigned char *)malloc(buf_len+10); 204 m = malloc(buf_len+10);
205 if (m == NULL) 205 if (m == NULL)
206 { 206 {
207 RSAerr(RSA_F_DO_RSA_PRINT,ERR_R_MALLOC_FAILURE); 207 RSAerr(RSA_F_DO_RSA_PRINT,ERR_R_MALLOC_FAILURE);