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/x509/x509_req.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/x509/x509_req.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c index ae6fbd7d14..9ca09d134a 100644 --- a/src/lib/libcrypto/x509/x509_req.c +++ b/src/lib/libcrypto/x509/x509_req.c | |||
| @@ -84,7 +84,7 @@ X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) | |||
| 84 | ri = ret->req_info; | 84 | ri = ret->req_info; |
| 85 | 85 | ||
| 86 | ri->version->length = 1; | 86 | ri->version->length = 1; |
| 87 | ri->version->data = (unsigned char *)malloc(1); | 87 | ri->version->data = malloc(1); |
| 88 | if (ri->version->data == NULL) | 88 | if (ri->version->data == NULL) |
| 89 | goto err; | 89 | goto err; |
| 90 | ri->version->data[0] = 0; /* version == 0 */ | 90 | ri->version->data[0] = 0; /* version == 0 */ |
