From 7236e5f83a621ab972f9ae6eda5b9562aba3217b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 16 Jan 2022 18:34:17 +0100 Subject: -fix crashes on new DHT load/shutdown --- src/dhtu/Makefile.am | 4 ++++ src/dhtu/dhtu.conf | 5 +++++ src/dhtu/plugin_dhtu_gnunet.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/dhtu/dhtu.conf (limited to 'src/dhtu') diff --git a/src/dhtu/Makefile.am b/src/dhtu/Makefile.am index 0e10721cd..69b72db6e 100644 --- a/src/dhtu/Makefile.am +++ b/src/dhtu/Makefile.am @@ -10,6 +10,10 @@ if USE_COVERAGE XLIBS = -lgcov endif +pkgcfg_DATA = \ + dhtu.conf + + plugin_LTLIBRARIES = \ libgnunet_plugin_dhtu_gnunet.la \ libgnunet_plugin_dhtu_ip.la diff --git a/src/dhtu/dhtu.conf b/src/dhtu/dhtu.conf new file mode 100644 index 000000000..438cd0955 --- /dev/null +++ b/src/dhtu/dhtu.conf @@ -0,0 +1,5 @@ +[dhtu-gnunet] +ENABLED = YES + +[dhtu-ip] +ENABLED = NO diff --git a/src/dhtu/plugin_dhtu_gnunet.c b/src/dhtu/plugin_dhtu_gnunet.c index 14e16470c..493fd5119 100644 --- a/src/dhtu/plugin_dhtu_gnunet.c +++ b/src/dhtu/plugin_dhtu_gnunet.c @@ -590,7 +590,7 @@ libgnunet_plugin_dhtu_gnunet_done (void *cls) * @return the plugin's API */ void * -libgnunet_plugin_dhtu_ip_init (void *cls) +libgnunet_plugin_dhtu_gnunet_init (void *cls) { struct GNUNET_DHTU_PluginEnvironment *env = cls; struct GNUNET_DHTU_PluginFunctions *api; -- cgit v1.2.3