improved messages
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 8 Aug 2013 09:53:01 +0000 (09:53 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 8 Aug 2013 09:53:01 +0000 (09:53 +0000)
src/transport/gnunet-service-transport_neighbours.c

index e0e549a3a41be2c2c1fcb52c09f49df179e3bfb5..8f53b93beb3772d6e89f3f353afc0e40f4e6669a 100644 (file)
@@ -3163,6 +3163,10 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity
       sizeof (struct GNUNET_CRYPTO_EccPublicKey) +
       sizeof (struct GNUNET_TIME_AbsoluteNBO))
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                "%s message from peer `%s' has invalid size \n",
+                "DISCONNECT",
+                GNUNET_i2s (peer));
     GNUNET_break_op (0);
     return;
   }
@@ -3171,6 +3175,10 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity
       (GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT, &sdm->purpose,
        &sdm->signature, &sdm->public_key))
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                "%s message from peer `%s' cannot be verified \n",
+                "DISCONNECT",
+                GNUNET_i2s (peer));
     GNUNET_break_op (0);
     return;
   }