diff options
| author | deraadt <> | 2014-04-21 11:19:28 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-04-21 11:19:28 +0000 |
| commit | 1173b460dd1b6683fa4ee3599d96ef0459b60058 (patch) | |
| tree | 1e6199ed41a734113749d90c39e6336a93e72af4 /src/lib/libcrypto/cryptlib.c | |
| parent | 8e35014f168891bed7866c3c08a7cd4efaaf8c90 (diff) | |
| download | openbsd-1173b460dd1b6683fa4ee3599d96ef0459b60058.tar.gz openbsd-1173b460dd1b6683fa4ee3599d96ef0459b60058.tar.bz2 openbsd-1173b460dd1b6683fa4ee3599d96ef0459b60058.zip | |
modernize malloc call
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
| -rw-r--r-- | src/lib/libcrypto/cryptlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c index addc27eb08..0058e8328b 100644 --- a/src/lib/libcrypto/cryptlib.c +++ b/src/lib/libcrypto/cryptlib.c | |||
| @@ -241,7 +241,7 @@ CRYPTO_get_new_dynlockid(void) | |||
| 241 | } | 241 | } |
| 242 | CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK); | 242 | CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK); |
| 243 | 243 | ||
| 244 | pointer = (CRYPTO_dynlock *)malloc(sizeof(CRYPTO_dynlock)); | 244 | pointer = malloc(sizeof(CRYPTO_dynlock)); |
| 245 | if (pointer == NULL) { | 245 | if (pointer == NULL) { |
| 246 | CRYPTOerr(CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID, | 246 | CRYPTOerr(CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID, |
| 247 | ERR_R_MALLOC_FAILURE); | 247 | ERR_R_MALLOC_FAILURE); |
