fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 15 Jul 2011 14:01:15 +0000 (14:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 15 Jul 2011 14:01:15 +0000 (14:01 +0000)
src/transport/gnunet-service-transport.c

index 1ba2bacb6e95d3ee580c0d1efd35126411b038f5..5210d728ea0721d4353cb53cd882244d37979056 100644 (file)
@@ -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);