From: Matthias Wachs Date: Thu, 8 Aug 2013 09:53:01 +0000 (+0000) Subject: improved messages X-Git-Tag: initial-import-from-subversion-38251~7954 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0cb9b10ad35339b08b6c87d71b948abb13e44a38;p=oweals%2Fgnunet.git improved messages --- diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index e0e549a3a..8f53b93be 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -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; }