[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: NAMESTORE/REST: fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: NAMESTORE/REST: fix |
Date: |
Thu, 25 Apr 2019 21:58:36 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new e62d66986 NAMESTORE/REST: fix
e62d66986 is described below
commit e62d669865e9ce03f924d2b12401dfbe42f3b886
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Thu Apr 25 21:58:22 2019 +0200
NAMESTORE/REST: fix
---
src/namestore/plugin_rest_namestore.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/namestore/plugin_rest_namestore.c
b/src/namestore/plugin_rest_namestore.c
index 26a037eae..cad019292 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -201,7 +201,7 @@ struct RequestHandle
* Rest connection
*/
struct GNUNET_REST_RequestHandle *rest_handle;
-
+
/**
* Desired timeout for the lookup (default is no timeout).
*/
@@ -495,7 +495,7 @@ namestore_list_iteration (void *cls,
(0 != strcmp (rname, GNUNET_GNS_EMPTY_LABEL_AT)) )
continue;
- record_obj = GNUNET_JSON_from_gns_record(rname,rd);
+ record_obj = GNUNET_JSON_from_gns_record (rname, &rd[i]);
if(NULL == record_obj)
continue;
@@ -1022,14 +1022,14 @@ rest_process_request(struct GNUNET_REST_RequestHandle
*rest_handle,
void *proc_cls)
{
struct RequestHandle *handle = GNUNET_new (struct RequestHandle);
-
+
handle->response_code = 0;
handle->timeout = GNUNET_TIME_UNIT_FOREVER_REL;
handle->proc_cls = proc_cls;
handle->proc = proc;
handle->rest_handle = rest_handle;
handle->zone_pkey = NULL;
-
+
handle->url = GNUNET_strdup (rest_handle->url);
if (handle->url[strlen (handle->url)-1] == '/')
handle->url[strlen (handle->url)-1] = '\0';
@@ -1041,7 +1041,7 @@ rest_process_request(struct GNUNET_REST_RequestHandle
*rest_handle,
GNUNET_SCHEDULER_add_delayed (handle->timeout,
&do_error,
handle);
-
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n");
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: NAMESTORE/REST: fix,
gnunet <=