summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-09 14:28:45 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-09 14:28:45 +0000
commit72a2c1b9542d68eab32f483a1c53eeec19bc12b3 (patch)
tree36fe4082af27fba371e51bb838d8a0435e032432 /src/transport/gnunet-service-transport_validation.c
parent6806f421c1164921cfa265ddc7009c08986bc915 (diff)
-do only send HELLO to clients once on startup, do only send fully initialized HELLO to clients if we can help it, even the first one; do not perform blacklist check twice for try_connect
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index abf15debf..a2fb3c853 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -526,7 +526,12 @@ transmit_ping_if_allowed (void *cls,
cleanup_validation_entry (NULL, pid, ve);
return;
}
-
+ hello = GST_hello_get ();
+ if (NULL == hello)
+ {
+ GNUNET_break (0);
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Transmitting plain PING to `%s' `%s' `%s'\n",
GNUNET_i2s (pid),
@@ -534,7 +539,6 @@ transmit_ping_if_allowed (void *cls,
ve->address->transport_name);
slen = strlen (ve->address->transport_name) + 1;
- hello = GST_hello_get ();
hsize = ntohs (hello->size);
tsize =
sizeof (struct TransportPingMessage) + ve->address->address_length +
@@ -900,7 +904,7 @@ GST_validation_start (unsigned int max_fds)
validations_running,
GNUNET_NO);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Validation uses a fast start threshold of %u connections and a delay between of %s\n ",
+ "Validation uses a fast start threshold of %u connections and a delay of %s\n",
validations_fast_start_threshold,
GNUNET_STRINGS_relative_time_to_string (validation_delay,
GNUNET_YES));