From 36ea0cda927fb838aaac49b0e0a05407c0b6a499 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jul 2011 14:01:15 +0000 Subject: [PATCH] fix --- src/transport/gnunet-service-transport.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 1ba2bacb6..5210d728e 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -2659,10 +2659,7 @@ notify_clients_connect (const struct GNUNET_PeerIdentity *peer, ats_count = 2; size = sizeof (struct ConnectInfoMessage) + ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); - if (size > GNUNET_SERVER_MAX_MESSAGE_SIZE) - { - GNUNET_break(0); - } + GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE); cim = GNUNET_malloc (size); cim->header.size = htons (size); cim->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT); -- 2.25.1