aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/threads
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-27 14:04:16 +0000
committerMartin Willi <martin@strongswan.org>2005-11-27 14:04:16 +0000
commitb2410480849950b1797bbdf8490016450f764774 (patch)
treea1b9742b0c381386d6c1202f235bba9f4b817732 /Source/charon/threads
parent9d086b79f659166fe5093aa5cbc8dbe97daceda5 (diff)
downloadstrongswan-b2410480849950b1797bbdf8490016450f764774.tar.bz2
strongswan-b2410480849950b1797bbdf8490016450f764774.tar.xz
- moved hasher_*_t to *_hasher_t
- some logging improvements
Diffstat (limited to 'Source/charon/threads')
-rw-r--r--Source/charon/threads/thread_pool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/charon/threads/thread_pool.c b/Source/charon/threads/thread_pool.c
index c22f5fe05..dc60deb61 100644
--- a/Source/charon/threads/thread_pool.c
+++ b/Source/charon/threads/thread_pool.c
@@ -348,6 +348,10 @@ thread_pool_t *thread_pool_create(size_t pool_size)
int current;
private_thread_pool_t *this = allocator_alloc_thing(private_thread_pool_t);
+ if (this == NULL)
+ {
+ return NULL;
+ }
/* fill in public fields */
this->public.destroy = (status_t(*)(thread_pool_t*))destroy;