aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/resolver_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c
index ba9a6cd71..9be7014c2 100644
--- a/src/util/resolver_api.c
+++ b/src/util/resolver_api.c
@@ -240,7 +240,6 @@ GNUNET_RESOLVER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
240 GNUNET_assert (NULL != cfg); 240 GNUNET_assert (NULL != cfg);
241 backoff = GNUNET_TIME_UNIT_MILLISECONDS; 241 backoff = GNUNET_TIME_UNIT_MILLISECONDS;
242 resolver_cfg = cfg; 242 resolver_cfg = cfg;
243 (void) check_config ();
244} 243}
245 244
246 245
@@ -873,6 +872,11 @@ GNUNET_RESOLVER_ip_get (const char *hostname,
873 rh); 872 rh);
874 return rh; 873 return rh;
875 } 874 }
875 if (GNUNET_OK != check_config ())
876 {
877 GNUNET_free (rh);
878 return NULL;
879 }
876 rh->task = GNUNET_SCHEDULER_add_delayed (timeout, 880 rh->task = GNUNET_SCHEDULER_add_delayed (timeout,
877 &handle_lookup_timeout, 881 &handle_lookup_timeout,
878 rh); 882 rh);