From cc1a0361b423f92a18115785c13893e04bf6799a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Jan 2015 19:41:24 +0000 Subject: [PATCH] only add addresses as valid from peerinfo if we have the respective plugin loaded --- src/transport/gnunet-service-transport_validation.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 03b125dc5..b3fe5c46b 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c @@ -844,6 +844,12 @@ add_valid_address (void *cls, /* Peerinfo returned own identity, skip validation */ return GNUNET_OK; } + if (NULL == GST_plugins_find (address->transport_name)) + { + /* might have been valid in the past, but we don't have that + plugin loaded right now */ + return GNUNET_OK; + } ve = find_validation_entry (&public_key, address); ve->valid_until = GNUNET_TIME_absolute_max (ve->valid_until, -- 2.25.1