summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-10 11:37:11 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-10 11:37:11 +0000
commit6cf96e80986552390556f36bd6e464d48c1a4b88 (patch)
tree918237c5493c6da37b303b4825407cf1cc51fedd /src/transport/gnunet-service-transport_validation.c
parent3f1d462dac5ca4124c2a67f2c84a6685507b1026 (diff)
-fix #3665: hello can theoretically still be NULL
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c8
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 c2e12fb16..cd5a87696 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -529,7 +529,9 @@ transmit_ping_if_allowed (void *cls,
hello = GST_hello_get ();
if (NULL == hello)
{
- GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Not PINGing peer `%s' as our HELLO is not yet ready\n",
+ GNUNET_i2s (pid));
return;
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -700,7 +702,9 @@ revalidate_address (void *cls,
1,
GNUNET_NO);
ve->revalidation_task =
- GNUNET_SCHEDULER_add_delayed (blocked_for, &revalidate_address, ve);
+ GNUNET_SCHEDULER_add_delayed (blocked_for,
+ &revalidate_address,
+ ve);
ve->next_validation = GNUNET_TIME_relative_to_absolute (blocked_for);
return;
}