From: Pekka Riikonen Date: Sat, 12 Apr 2008 10:50:39 +0000 (+0300) Subject: Fixed silc_skr_init to not fail if threads support are not compiled in. X-Git-Tag: silc.server.1.1.3~2 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=7f2e2c591c48f80822808759d12958769a323536 Fixed silc_skr_init to not fail if threads support are not compiled in. --- diff --git a/lib/silcskr/silcskr.c b/lib/silcskr/silcskr.c index df4a74e5..327c6124 100644 --- a/lib/silcskr/silcskr.c +++ b/lib/silcskr/silcskr.c @@ -632,8 +632,7 @@ void silc_skr_free(SilcSKR skr) SilcBool silc_skr_init(SilcSKR skr) { - if (!silc_mutex_alloc(&skr->lock)) - return FALSE; + silc_mutex_alloc(&skr->lock); skr->keys = silc_hash_table_alloc(0, silc_skr_hash, NULL, silc_skr_compare, NULL,