diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-25 19:41:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-25 19:41:24 +0000 |
commit | cc1a0361b423f92a18115785c13893e04bf6799a (patch) | |
tree | 6b2b7ac3e1ba4224791518a38276efdd9729bb65 /src/transport | |
parent | c400d2dfb0277e768ae873284c4d2245b6ff75b7 (diff) | |
download | gnunet-cc1a0361b423f92a18115785c13893e04bf6799a.tar.gz gnunet-cc1a0361b423f92a18115785c13893e04bf6799a.zip |
only add addresses as valid from peerinfo if we have the respective plugin loaded
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, | |||
844 | /* Peerinfo returned own identity, skip validation */ | 844 | /* Peerinfo returned own identity, skip validation */ |
845 | return GNUNET_OK; | 845 | return GNUNET_OK; |
846 | } | 846 | } |
847 | if (NULL == GST_plugins_find (address->transport_name)) | ||
848 | { | ||
849 | /* might have been valid in the past, but we don't have that | ||
850 | plugin loaded right now */ | ||
851 | return GNUNET_OK; | ||
852 | } | ||
847 | 853 | ||
848 | ve = find_validation_entry (&public_key, address); | 854 | ve = find_validation_entry (&public_key, address); |
849 | ve->valid_until = GNUNET_TIME_absolute_max (ve->valid_until, | 855 | ve->valid_until = GNUNET_TIME_absolute_max (ve->valid_until, |