splitting 'struct GNUNET_CRYPTO_EccPublicKey' into one struct for signing and another...
[oweals/gnunet.git] / src / transport / plugin_transport_wlan.c
index 42ed771f45447a3fc15064d94c058f432cef7999..64e2dd0923ce020528cf7859607bae3eb943a22d 100644 (file)
@@ -588,6 +588,12 @@ send_ack (void *cls, uint32_t msg_id,
   size_t size = sizeof (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage) + msize;
   char buf[size];
 
+  if (NULL == endpoint)
+  {
+       GNUNET_break (0);
+       return;
+  }
+
   if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
   {
     GNUNET_break (0);
@@ -812,6 +818,12 @@ transmit_fragment (void *cls,
   size_t size;
   uint16_t msize;
 
+  if (NULL == endpoint)
+  {
+       GNUNET_break (0);
+       return;
+  }
+
   msize = ntohs (hdr->size);
   size = sizeof (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage) + msize;
   {