aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-04 09:43:10 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-04 09:43:10 +0000
commitc303b97bd731aef372ec24ebe8b47ee014ada23b (patch)
treeaa287d7443434a9147cfb08fe0caa12e9c8de9e4 /src/transport/transport_api.c
parented18131bd038617c03e0b3b83e3eb56c31dc3e4a (diff)
downloadgnunet-c303b97bd731aef372ec24ebe8b47ee014ada23b.tar.gz
gnunet-c303b97bd731aef372ec24ebe8b47ee014ada23b.zip
changes for mantis 0002676
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index d8fb7d520..8dc4c7a42 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -497,7 +497,6 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
497 switch (ntohs (msg->type)) 497 switch (ntohs (msg->type))
498 { 498 {
499 case GNUNET_MESSAGE_TYPE_HELLO: 499 case GNUNET_MESSAGE_TYPE_HELLO:
500 case GNUNET_MESSAGE_TYPE_FRIEND_HELLO:
501 if (GNUNET_OK != 500 if (GNUNET_OK !=
502 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) msg, &me)) 501 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) msg, &me))
503 { 502 {
@@ -1293,8 +1292,7 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
1293 if (NULL == handle->client) 1292 if (NULL == handle->client)
1294 return NULL; 1293 return NULL;
1295 1294
1296 GNUNET_break ((ntohs (hello->type) == GNUNET_MESSAGE_TYPE_HELLO) || 1295 GNUNET_break (ntohs (hello->type) == GNUNET_MESSAGE_TYPE_HELLO);
1297 (ntohs (hello->type) == GNUNET_MESSAGE_TYPE_FRIEND_HELLO));
1298 size = ntohs (hello->size); 1296 size = ntohs (hello->size);
1299 GNUNET_break (size >= sizeof (struct GNUNET_MessageHeader)); 1297 GNUNET_break (size >= sizeof (struct GNUNET_MessageHeader));
1300 if (GNUNET_OK != 1298 if (GNUNET_OK !=