diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-16 18:34:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-19 12:41:01 +0100 |
commit | 7236e5f83a621ab972f9ae6eda5b9562aba3217b (patch) | |
tree | 282ac568f3b1affc919804098536eb39f023f5bd /src/dhtu | |
parent | 8ca9b2754d10419c9d8c041549d5747ec482b83a (diff) | |
download | gnunet-7236e5f83a621ab972f9ae6eda5b9562aba3217b.tar.gz gnunet-7236e5f83a621ab972f9ae6eda5b9562aba3217b.zip |
-fix crashes on new DHT load/shutdown
Diffstat (limited to 'src/dhtu')
-rw-r--r-- | src/dhtu/Makefile.am | 4 | ||||
-rw-r--r-- | src/dhtu/dhtu.conf | 5 | ||||
-rw-r--r-- | src/dhtu/plugin_dhtu_gnunet.c | 2 |
3 files changed, 10 insertions, 1 deletions
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 | |||
10 | XLIBS = -lgcov | 10 | XLIBS = -lgcov |
11 | endif | 11 | endif |
12 | 12 | ||
13 | pkgcfg_DATA = \ | ||
14 | dhtu.conf | ||
15 | |||
16 | |||
13 | plugin_LTLIBRARIES = \ | 17 | plugin_LTLIBRARIES = \ |
14 | libgnunet_plugin_dhtu_gnunet.la \ | 18 | libgnunet_plugin_dhtu_gnunet.la \ |
15 | libgnunet_plugin_dhtu_ip.la | 19 | 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 @@ | |||
1 | [dhtu-gnunet] | ||
2 | ENABLED = YES | ||
3 | |||
4 | [dhtu-ip] | ||
5 | 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) | |||
590 | * @return the plugin's API | 590 | * @return the plugin's API |
591 | */ | 591 | */ |
592 | void * | 592 | void * |
593 | libgnunet_plugin_dhtu_ip_init (void *cls) | 593 | libgnunet_plugin_dhtu_gnunet_init (void *cls) |
594 | { | 594 | { |
595 | struct GNUNET_DHTU_PluginEnvironment *env = cls; | 595 | struct GNUNET_DHTU_PluginEnvironment *env = cls; |
596 | struct GNUNET_DHTU_PluginFunctions *api; | 596 | struct GNUNET_DHTU_PluginFunctions *api; |