From c45150e1f9f90dc9bc56c4fb008ae7b24ab65499 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 4 Nov 2016 09:47:17 +0000 Subject: [PATCH] - don't complain about retransmitted connection_create/_ack messages --- src/cadet/gnunet-service-cadet_connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index fb857b846..533372efa 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -2179,7 +2179,6 @@ GCC_handle_confirm (struct CadetPeer *peer, GCC_send_prebuilt_message (&msg->header, 0, 0, c, fwd, GNUNET_YES, NULL, NULL)); GCC_check_connections (); - return; } @@ -3292,7 +3291,8 @@ GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE: case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK: - GNUNET_break (0); /* Should've used specific functions. */ + /* Should've only be used for restransmissions. */ + GNUNET_break (0 == payload_type); break; case GNUNET_MESSAGE_TYPE_CADET_ACK: -- 2.25.1