plugin name should never be NULL
authorChristian Grothoff <christian@grothoff.org>
Mon, 14 Nov 2011 22:40:18 +0000 (22:40 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 14 Nov 2011 22:40:18 +0000 (22:40 +0000)
src/ats/ats_api_scheduling.c

index fa1b6bc26542ca53954ff84d0f252775849dc977..9991049796597e0c1417b8d8ce8780597d04c14c 100644 (file)
@@ -822,6 +822,7 @@ GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh,
   size_t msize;
   uint32_t session_id;
 
+  GNUNET_break (address->transport_name != NULL);
   namelen = (address->transport_name == NULL) ? 0 : strlen (address->transport_name) + 1;
   msize = sizeof (struct AddressDestroyedMessage) + address->address_length + namelen;
   if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||