diff options
-rw-r--r-- | src/lib/libcrypto/malloc-wrapper.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/malloc-wrapper.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/libcrypto/malloc-wrapper.c b/src/lib/libcrypto/malloc-wrapper.c index 49d7c572c8..c754df40e3 100644 --- a/src/lib/libcrypto/malloc-wrapper.c +++ b/src/lib/libcrypto/malloc-wrapper.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */ | 1 | /* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Bob Beck | 3 | * Copyright (c) 2014 Bob Beck |
4 | * | 4 | * |
@@ -118,8 +118,6 @@ CRYPTO_get_mem_debug_functions(void (**m)(void *, int, const char *, int, int), | |||
118 | void * | 118 | void * |
119 | CRYPTO_malloc_locked(int num, const char *file, int line) | 119 | CRYPTO_malloc_locked(int num, const char *file, int line) |
120 | { | 120 | { |
121 | void *ret = NULL; | ||
122 | |||
123 | if (num <= 0) | 121 | if (num <= 0) |
124 | return NULL; | 122 | return NULL; |
125 | return malloc(num); | 123 | return malloc(num); |
diff --git a/src/lib/libssl/src/crypto/malloc-wrapper.c b/src/lib/libssl/src/crypto/malloc-wrapper.c index 49d7c572c8..c754df40e3 100644 --- a/src/lib/libssl/src/crypto/malloc-wrapper.c +++ b/src/lib/libssl/src/crypto/malloc-wrapper.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */ | 1 | /* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Bob Beck | 3 | * Copyright (c) 2014 Bob Beck |
4 | * | 4 | * |
@@ -118,8 +118,6 @@ CRYPTO_get_mem_debug_functions(void (**m)(void *, int, const char *, int, int), | |||
118 | void * | 118 | void * |
119 | CRYPTO_malloc_locked(int num, const char *file, int line) | 119 | CRYPTO_malloc_locked(int num, const char *file, int line) |
120 | { | 120 | { |
121 | void *ret = NULL; | ||
122 | |||
123 | if (num <= 0) | 121 | if (num <= 0) |
124 | return NULL; | 122 | return NULL; |
125 | return malloc(num); | 123 | return malloc(num); |