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/dsa | |
| 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/dsa')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index c6d04f6a5d..459bea2041 100644 --- a/src/lib/libcrypto/dsa/dsa_ameth.c +++ b/src/lib/libcrypto/dsa/dsa_ameth.c | |||
| @@ -457,7 +457,7 @@ static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) | |||
| 457 | update_buflen(priv_key, &buf_len); | 457 | update_buflen(priv_key, &buf_len); |
| 458 | update_buflen(pub_key, &buf_len); | 458 | update_buflen(pub_key, &buf_len); |
| 459 | 459 | ||
| 460 | m=(unsigned char *)malloc(buf_len+10); | 460 | m = malloc(buf_len+10); |
| 461 | if (m == NULL) | 461 | if (m == NULL) |
| 462 | { | 462 | { |
| 463 | DSAerr(DSA_F_DO_DSA_PRINT,ERR_R_MALLOC_FAILURE); | 463 | DSAerr(DSA_F_DO_DSA_PRINT,ERR_R_MALLOC_FAILURE); |
diff --git a/src/lib/libcrypto/dsa/dsa_lib.c b/src/lib/libcrypto/dsa/dsa_lib.c index 7c7cd60883..002d64665a 100644 --- a/src/lib/libcrypto/dsa/dsa_lib.c +++ b/src/lib/libcrypto/dsa/dsa_lib.c | |||
| @@ -116,7 +116,7 @@ DSA *DSA_new_method(ENGINE *engine) | |||
| 116 | { | 116 | { |
| 117 | DSA *ret; | 117 | DSA *ret; |
| 118 | 118 | ||
| 119 | ret=(DSA *)malloc(sizeof(DSA)); | 119 | ret = malloc(sizeof(DSA)); |
| 120 | if (ret == NULL) | 120 | if (ret == NULL) |
| 121 | { | 121 | { |
| 122 | DSAerr(DSA_F_DSA_NEW_METHOD,ERR_R_MALLOC_FAILURE); | 122 | DSAerr(DSA_F_DSA_NEW_METHOD,ERR_R_MALLOC_FAILURE); |
