gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7314 - GNUnet/src/applications/bootstrap_http


From: gnunet
Subject: [GNUnet-SVN] r7314 - GNUnet/src/applications/bootstrap_http
Date: Mon, 23 Jun 2008 12:10:45 -0600 (MDT)

Author: durner
Date: 2008-06-23 12:10:45 -0600 (Mon, 23 Jun 2008)
New Revision: 7314

Modified:
   GNUnet/src/applications/bootstrap_http/http.c
Log:
Fix bootstrapping from "p=448" (Mantis #1366, #1364)

Modified: GNUnet/src/applications/bootstrap_http/http.c
===================================================================
--- GNUnet/src/applications/bootstrap_http/http.c       2008-06-23 18:03:58 UTC 
(rev 7313)
+++ GNUnet/src/applications/bootstrap_http/http.c       2008-06-23 18:10:45 UTC 
(rev 7314)
@@ -248,14 +248,14 @@
   if (ret != CURLE_OK)
     goto cleanup;
   CURL_EASY_SETOPT (curl, CURLOPT_FAILONERROR, 1);
-  CURL_EASY_SETOPT (curl, CURLOPT_URL, &url[pos]);
+  CURL_EASY_SETOPT (curl, CURLOPT_URL, url);
   GNUNET_GE_LOG (ectx,
                  GNUNET_GE_INFO | GNUNET_GE_USER | GNUNET_GE_BULK,
-                 _("Trying to download hostlist from `%s'\n"), &url[pos]);
+                 _("Trying to download hostlist from `%s'\n"), url);
   if (strlen (proxy) > 0)
     CURL_EASY_SETOPT (curl, CURLOPT_PROXY, proxy);
   CURL_EASY_SETOPT (curl, CURLOPT_BUFFERSIZE, 1024);    /* a bit more than one 
HELLO */
-  if (0 == strncmp (&url[pos], "http", 4))
+  if (0 == strncmp (url, "http", 4))
     CURL_EASY_SETOPT (curl, CURLOPT_USERAGENT, "GNUnet");
   CURL_EASY_SETOPT (curl, CURLOPT_CONNECTTIMEOUT, 150L);
   /* NOTE: use of CONNECTTIMEOUT without also





reply via email to

[Prev in Thread] Current Thread [Next in Thread]