diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-25 21:58:22 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-25 21:58:22 +0200 |
commit | e62d669865e9ce03f924d2b12401dfbe42f3b886 (patch) | |
tree | a3c1fc47cb5e0e8574ec5caf8ebb2578c62076d0 /src/namestore/plugin_rest_namestore.c | |
parent | ed649403902b055935308ee7a244e2d3ba081301 (diff) | |
download | gnunet-e62d669865e9ce03f924d2b12401dfbe42f3b886.tar.gz gnunet-e62d669865e9ce03f924d2b12401dfbe42f3b886.zip |
NAMESTORE/REST: fix
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 10 |
1 files 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 | |||
201 | * Rest connection | 201 | * Rest connection |
202 | */ | 202 | */ |
203 | struct GNUNET_REST_RequestHandle *rest_handle; | 203 | struct GNUNET_REST_RequestHandle *rest_handle; |
204 | 204 | ||
205 | /** | 205 | /** |
206 | * Desired timeout for the lookup (default is no timeout). | 206 | * Desired timeout for the lookup (default is no timeout). |
207 | */ | 207 | */ |
@@ -495,7 +495,7 @@ namestore_list_iteration (void *cls, | |||
495 | (0 != strcmp (rname, GNUNET_GNS_EMPTY_LABEL_AT)) ) | 495 | (0 != strcmp (rname, GNUNET_GNS_EMPTY_LABEL_AT)) ) |
496 | continue; | 496 | continue; |
497 | 497 | ||
498 | record_obj = GNUNET_JSON_from_gns_record(rname,rd); | 498 | record_obj = GNUNET_JSON_from_gns_record (rname, &rd[i]); |
499 | 499 | ||
500 | if(NULL == record_obj) | 500 | if(NULL == record_obj) |
501 | continue; | 501 | continue; |
@@ -1022,14 +1022,14 @@ rest_process_request(struct GNUNET_REST_RequestHandle *rest_handle, | |||
1022 | void *proc_cls) | 1022 | void *proc_cls) |
1023 | { | 1023 | { |
1024 | struct RequestHandle *handle = GNUNET_new (struct RequestHandle); | 1024 | struct RequestHandle *handle = GNUNET_new (struct RequestHandle); |
1025 | 1025 | ||
1026 | handle->response_code = 0; | 1026 | handle->response_code = 0; |
1027 | handle->timeout = GNUNET_TIME_UNIT_FOREVER_REL; | 1027 | handle->timeout = GNUNET_TIME_UNIT_FOREVER_REL; |
1028 | handle->proc_cls = proc_cls; | 1028 | handle->proc_cls = proc_cls; |
1029 | handle->proc = proc; | 1029 | handle->proc = proc; |
1030 | handle->rest_handle = rest_handle; | 1030 | handle->rest_handle = rest_handle; |
1031 | handle->zone_pkey = NULL; | 1031 | handle->zone_pkey = NULL; |
1032 | 1032 | ||
1033 | handle->url = GNUNET_strdup (rest_handle->url); | 1033 | handle->url = GNUNET_strdup (rest_handle->url); |
1034 | if (handle->url[strlen (handle->url)-1] == '/') | 1034 | if (handle->url[strlen (handle->url)-1] == '/') |
1035 | handle->url[strlen (handle->url)-1] = '\0'; | 1035 | handle->url[strlen (handle->url)-1] = '\0'; |
@@ -1041,7 +1041,7 @@ rest_process_request(struct GNUNET_REST_RequestHandle *rest_handle, | |||
1041 | GNUNET_SCHEDULER_add_delayed (handle->timeout, | 1041 | GNUNET_SCHEDULER_add_delayed (handle->timeout, |
1042 | &do_error, | 1042 | &do_error, |
1043 | handle); | 1043 | handle); |
1044 | 1044 | ||
1045 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n"); | 1045 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n"); |
1046 | } | 1046 | } |
1047 | 1047 | ||