libclamav: make sure TLS key is initializer (bb #2588)

Thanks to Cameron Brown for the detailed analysis of the bug.
remotes/push_mirror/cliemu_dump
Török Edvin 14 years ago
parent ad3fad0c97
commit f53a115ee5
  1. 5
      ChangeLog
  2. 1
      libclamav/others_common.c

@ -1,3 +1,8 @@
Thu Apr 14 21:29:36 EEST 2011 (edwin)
-------------------------------------
* libclamav/others.c: make sure TLS key is initializer (bb #2588).
Thanks to Cameron Brown for the detailed analysis of the bug.
Thu Apr 14 13:19:38 EEST 2011 (edwin)
-------------------------------------
* configure: check for enable_extended_FILE_stdio (bb #2542)

@ -96,6 +96,7 @@ void cli_logg_unsetup(void)
static inline void *cli_getctx(void)
{
pthread_once(&cli_ctx_tls_key_once, cli_ctx_tls_key_alloc);
cli_ctx *ctx = pthread_getspecific(cli_ctx_tls_key);
return ctx ? ctx->cb_ctx : NULL;
}

Loading…
Cancel
Save