diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-07 10:04:27 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-07 10:04:27 +0000 |
commit | 36e541fc75bcdc64e22f6de88b4f91264284c870 (patch) | |
tree | a6b3283ce369c24b65bc2fcd61ba73e9b2b5a705 /src/transport/gnunet-service-transport_validation.c | |
parent | af273ca2ab9c572afc13bcb304de2587fd6018f4 (diff) | |
download | gnunet-36e541fc75bcdc64e22f6de88b4f91264284c870.tar.gz gnunet-36e541fc75bcdc64e22f6de88b4f91264284c870.zip |
error message instead of assertion
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 087c52411..0c70ee9bb 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1064,9 +1064,13 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
1064 | "Creating PONG signature to indicate ownership.\n"); | 1064 | "Creating PONG signature to indicate ownership.\n"); |
1065 | *sig_cache_exp = GNUNET_TIME_relative_to_absolute (PONG_SIGNATURE_LIFETIME); | 1065 | *sig_cache_exp = GNUNET_TIME_relative_to_absolute (PONG_SIGNATURE_LIFETIME); |
1066 | pong->expiration = GNUNET_TIME_absolute_hton (*sig_cache_exp); | 1066 | pong->expiration = GNUNET_TIME_absolute_hton (*sig_cache_exp); |
1067 | GNUNET_assert (GNUNET_OK == | 1067 | if (GNUNET_OK != |
1068 | GNUNET_CRYPTO_ecc_sign (GST_my_private_key, &pong->purpose, | 1068 | GNUNET_CRYPTO_ecc_sign (GST_my_private_key, &pong->purpose, |
1069 | sig_cache)); | 1069 | sig_cache)) |
1070 | { | ||
1071 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
1072 | _("Failed to create PONG signature for peer `%s'\n"), GNUNET_i2s (sender)); | ||
1073 | } | ||
1070 | } | 1074 | } |
1071 | else | 1075 | else |
1072 | { | 1076 | { |