aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport_validation.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index 7dfe28ae8..3742522da 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -1434,7 +1434,9 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
1434 { 1434 {
1435 /* We have a cached and valid signature for this peer, 1435 /* We have a cached and valid signature for this peer,
1436 * try to compare instead of verify */ 1436 * try to compare instead of verify */
1437 if (0 == memcmp (&ve->pong_sig_cache, &pong->signature, sizeof (struct GNUNET_CRYPTO_EddsaSignature))) 1437 if (0 == memcmp (&ve->pong_sig_cache,
1438 &pong->signature,
1439 sizeof (struct GNUNET_CRYPTO_EddsaSignature)))
1438 { 1440 {
1439 /* signatures are identical, we can skip verification */ 1441 /* signatures are identical, we can skip verification */
1440 sig_res = GNUNET_OK; 1442 sig_res = GNUNET_OK;
@@ -1451,7 +1453,8 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
1451 { 1453 {
1452 /* Do expensive verification */ 1454 /* Do expensive verification */
1453 sig_res = GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, 1455 sig_res = GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN,
1454 &pong->purpose, &pong->signature, 1456 &pong->purpose,
1457 &pong->signature,
1455 &ve->address->peer.public_key); 1458 &ve->address->peer.public_key);
1456 if (sig_res == GNUNET_SYSERR) 1459 if (sig_res == GNUNET_SYSERR)
1457 { 1460 {