aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/gnunet-service-core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index b11e2d37f4..c766ceb301 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -2349,6 +2349,14 @@ handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m)
&process_hello_retry_handle_set_key, m_cpy);
return;
}
+ if (0 != memcmp (&m->target,
+ &my_identity,
+ sizeof (struct GNUNET_PeerIdentity)))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("Received `%s' message that was not for me. Ignoring.\n"));
+ return;
+ }
if ((ntohl (m->purpose.size) !=
sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) +
sizeof (struct GNUNET_TIME_AbsoluteNBO) +