mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
dirmngr: Fix initialization of assuan's nPth hook.
* dirmngr/dirmngr.c (main): Move assuan_set_system_hooks to... (thread_init): ... here. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
055f8854d3
commit
1f8817475f
@ -802,6 +802,7 @@ static void
|
|||||||
thread_init (void)
|
thread_init (void)
|
||||||
{
|
{
|
||||||
npth_init ();
|
npth_init ();
|
||||||
|
assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);
|
||||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||||
|
|
||||||
/* Now with NPth running we can set the logging callback. Our
|
/* Now with NPth running we can set the logging callback. Our
|
||||||
@ -877,7 +878,6 @@ main (int argc, char **argv)
|
|||||||
assuan_set_malloc_hooks (&malloc_hooks);
|
assuan_set_malloc_hooks (&malloc_hooks);
|
||||||
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
|
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
|
||||||
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
|
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
|
||||||
assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);
|
|
||||||
assuan_sock_init ();
|
assuan_sock_init ();
|
||||||
setup_libassuan_logging (&opt.debug, dirmngr_assuan_log_monitor);
|
setup_libassuan_logging (&opt.debug, dirmngr_assuan_log_monitor);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user