diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-26 15:44:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-26 15:44:39 +0100 |
commit | bca0e0958f8c6ef951383ae86905cf430e156de0 (patch) | |
tree | 7a61d3ce67998aa1c4fd691a7e8bd6dcfc253062 /src/transport/gnunet-service-transport.c | |
parent | 51b3ec71fca6c78a9d0abaa90feafff611968e38 (diff) | |
download | gnunet-bca0e0958f8c6ef951383ae86905cf430e156de0.tar.gz gnunet-bca0e0958f8c6ef951383ae86905cf430e156de0.zip |
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.c | 11 |
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 | |||
113 | /** | 113 | /** |
114 | * It is a blacklist, query about allowed connections. | 114 | * It is a blacklist, query about allowed connections. |
115 | */ | 115 | */ |
116 | CT_BLACKLIST = 3 | 116 | CT_BLACKLIST = 3, |
117 | |||
118 | /** | ||
119 | * CORE client without any handlers. | ||
120 | */ | ||
121 | CT_CORE_NO_HANDLERS = 4 | ||
117 | }; | 122 | }; |
118 | 123 | ||
119 | 124 | ||
@@ -570,6 +575,8 @@ client_disconnect_cb (void *cls, | |||
570 | bc); | 575 | bc); |
571 | } | 576 | } |
572 | break; | 577 | break; |
578 | case CT_CORE_NO_HANDLERS: | ||
579 | break; | ||
573 | } | 580 | } |
574 | GNUNET_free (tc); | 581 | GNUNET_free (tc); |
575 | } | 582 | } |
@@ -650,6 +657,8 @@ handle_client_start (void *cls, | |||
650 | } | 657 | } |
651 | if (0 != (2 & options)) | 658 | if (0 != (2 & options)) |
652 | tc->type = CT_CORE; | 659 | tc->type = CT_CORE; |
660 | else | ||
661 | tc->type = CT_CORE_NO_HANDLERS; | ||
653 | hello = GST_hello_get (); | 662 | hello = GST_hello_get (); |
654 | if (NULL != hello) | 663 | if (NULL != hello) |
655 | unicast (tc, | 664 | unicast (tc, |