aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-28 13:38:43 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-28 13:38:43 +0000
commitd14f16987fb2e919c72ac20ff77857e57edaec33 (patch)
tree7b34b6529e524bf798c854b632ebb6af891adabf /src/core
parent00b9920ee8fa14275bcb910a9660046cbf7ffae7 (diff)
fix #3688
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core_kx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 6550160dfb..f64d2c066b 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -850,7 +850,7 @@ GSC_KX_handle_ephemeral_key (struct GSC_KeyExchangeInfo *kx,
if ( ( (GNUNET_CORE_KX_STATE_KEY_RECEIVED == kx->status) ||
(GNUNET_CORE_KX_STATE_UP == kx->status) ||
(GNUNET_CORE_KX_STATE_REKEY_SENT == kx->status) ) &&
- (end_t.abs_value_us <= kx->foreign_key_expires.abs_value_us) )
+ (end_t.abs_value_us < kx->foreign_key_expires.abs_value_us) )
{
GNUNET_STATISTICS_update (GSC_stats,
gettext_noop ("# old ephemeral keys ignored"),
@@ -886,8 +886,9 @@ GSC_KX_handle_ephemeral_key (struct GSC_KeyExchangeInfo *kx,
sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)) ||
(GNUNET_OK !=
GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY,
- &m->purpose,
- &m->signature, &m->origin_identity.public_key)))
+ &m->purpose,
+ &m->signature,
+ &m->origin_identity.public_key)))
{
/* invalid signature */
GNUNET_break_op (0);