fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 16 Jun 2011 10:59:18 +0000 (10:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 16 Jun 2011 10:59:18 +0000 (10:59 +0000)
src/util/service.c

index ec9a3bcaff7766973973f0a072189503699c5db8..a82b9d12b802ee05eb6470323a462449a3c7428e 100644 (file)
@@ -32,6 +32,7 @@
 #include "gnunet_getopt_lib.h"
 #include "gnunet_os_lib.h"
 #include "gnunet_protocols.h"
+#include "gnunet_resolver_service.h"
 #include "gnunet_server_lib.h"
 #include "gnunet_service_lib.h"
 
@@ -1338,7 +1339,7 @@ service_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   struct GNUNET_SERVICE_Context *sctx = cls;
   unsigned int i;
 
-  GNUNET_RESOLVER_connect (cc->cfg);
+  GNUNET_RESOLVER_connect (sctx->cfg);
   if (sctx->lsocks != NULL)
     sctx->server = GNUNET_SERVER_create_with_sockets (&check_access,
                                                      sctx,