fix transport API fix, make sure we do not stay at CT_NONE for core clients
authorChristian Grothoff <christian@grothoff.org>
Tue, 26 Feb 2019 14:44:30 +0000 (15:44 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 26 Feb 2019 14:44:39 +0000 (15:44 +0100)
src/transport/gnunet-service-transport.c

index c5fce94a7c806ba124b965941baaa62e3524469c..e1dfbae0f3c57a42337fde02c22cc1bef3b6a2e9 100644 (file)
@@ -113,7 +113,12 @@ enum ClientType
   /**
    * It is a blacklist, query about allowed connections.
    */
-  CT_BLACKLIST = 3
+  CT_BLACKLIST = 3,
+
+  /**
+   * CORE client without any handlers.
+   */
+  CT_CORE_NO_HANDLERS = 4
 };
 
 
@@ -570,6 +575,8 @@ client_disconnect_cb (void *cls,
                                             bc);
     }
     break;
+  case CT_CORE_NO_HANDLERS:
+    break;
   }
   GNUNET_free (tc);
 }
@@ -650,6 +657,8 @@ handle_client_start (void *cls,
   }
   if (0 != (2 & options))
     tc->type = CT_CORE;
+  else
+    tc->type = CT_CORE_NO_HANDLERS;
   hello = GST_hello_get ();
   if (NULL != hello)
     unicast (tc,