summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-26 15:44:30 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-26 15:44:39 +0100
commitbca0e0958f8c6ef951383ae86905cf430e156de0 (patch)
tree7a61d3ce67998aa1c4fd691a7e8bd6dcfc253062 /src/transport/gnunet-service-transport.c
parent51b3ec71fca6c78a9d0abaa90feafff611968e38 (diff)
fix transport API fix, make sure we do not stay at CT_NONE for core clients
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r--src/transport/gnunet-service-transport.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index c5fce94a7..e1dfbae0f 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -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,