From b1abcc15de281f6efe4de7b631e200f7ce52110b Mon Sep 17 00:00:00 2001
From: ulfvonbelow <striness@tilde.club>
Date: Sat, 4 May 2024 20:25:19 -0500
Subject: [PATCH] dht: remove vestigial GNUNET_PLUGIN_unload.

u->libname is no longer set, so this passes in NULL, which is then passed to
strcmp() and causes a segfault.

Also remove the libname field from struct GDS_Underlay entirely.
---
 src/service/dht/gnunet-service-dht.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/service/dht/gnunet-service-dht.c b/src/service/dht/gnunet-service-dht.c
index ab9e179bc..4579bfc2b 100644
--- a/src/service/dht/gnunet-service-dht.c
+++ b/src/service/dht/gnunet-service-dht.c
@@ -79,11 +79,6 @@ struct GDS_Underlay
    * Name of the underlay (i.e. "gnunet" or "ip").
    */
   char *name;
-
-  /**
-   * Name of the library providing the underlay.
-   */
-  char *libname;
 };
 
 
@@ -383,8 +378,6 @@ shutdown_task (void *cls)
 
   while (NULL != (u = u_head))
   {
-    GNUNET_PLUGIN_unload (u->libname,
-                          u->dhtu);
     GNUNET_CONTAINER_DLL_remove (u_head,
                                  u_tail,
                                  u);
-- 
2.41.0

