aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-15 09:02:23 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-15 09:02:23 +0000
commit38ab83f306e3e627af5140aaf8875bf2e1cc6241 (patch)
tree59fccbf567fd83d71c11d605db19efd1b7d7fac5
parent82f2e3c11812d0b86f451580db7bffb37e1f6387 (diff)
downloadgnunet-38ab83f306e3e627af5140aaf8875bf2e1cc6241.tar.gz
gnunet-38ab83f306e3e627af5140aaf8875bf2e1cc6241.zip
validate target
-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 b11e2d37f..c766ceb30 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)
2349 &process_hello_retry_handle_set_key, m_cpy); 2349 &process_hello_retry_handle_set_key, m_cpy);
2350 return; 2350 return;
2351 } 2351 }
2352 if (0 != memcmp (&m->target,
2353 &my_identity,
2354 sizeof (struct GNUNET_PeerIdentity)))
2355 {
2356 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
2357 _("Received `%s' message that was not for me. Ignoring.\n"));
2358 return;
2359 }
2352 if ((ntohl (m->purpose.size) != 2360 if ((ntohl (m->purpose.size) !=
2353 sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) + 2361 sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) +
2354 sizeof (struct GNUNET_TIME_AbsoluteNBO) + 2362 sizeof (struct GNUNET_TIME_AbsoluteNBO) +