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/util | |
parent | 8ca9b2754d10419c9d8c041549d5747ec482b83a (diff) | |
download | gnunet-7236e5f83a621ab972f9ae6eda5b9562aba3217b.tar.gz gnunet-7236e5f83a621ab972f9ae6eda5b9562aba3217b.zip |
-fix crashes on new DHT load/shutdown
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/plugin.c b/src/util/plugin.c index 39874a588..6ee41eec9 100644 --- a/src/util/plugin.c +++ b/src/util/plugin.c | |||
@@ -289,12 +289,12 @@ GNUNET_PLUGIN_unload (const char *library_name, | |||
289 | done = resolve_function (pos, | 289 | done = resolve_function (pos, |
290 | "done"); | 290 | "done"); |
291 | ret = NULL; | 291 | ret = NULL; |
292 | if (NULL != done) | ||
293 | ret = done (arg); | ||
294 | if (NULL == prev) | 292 | if (NULL == prev) |
295 | plugins = pos->next; | 293 | plugins = pos->next; |
296 | else | 294 | else |
297 | prev->next = pos->next; | 295 | prev->next = pos->next; |
296 | if (NULL != done) | ||
297 | ret = done (arg); | ||
298 | lt_dlclose (pos->handle); | 298 | lt_dlclose (pos->handle); |
299 | GNUNET_free (pos->name); | 299 | GNUNET_free (pos->name); |
300 | GNUNET_free (pos); | 300 | GNUNET_free (pos); |