aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/peerstore_api.c
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-12 15:55:41 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-12 15:55:41 +0000
commit6f1bbf8034e41837c33c5e3a7270c603a02e9d2e (patch)
tree5f3bf2aa83959c110376303298da5f49ba1134cf /src/peerstore/peerstore_api.c
parenta9670db6f78bdc4be16dc856a02fe42f4e039f93 (diff)
downloadgnunet-6f1bbf8034e41837c33c5e3a7270c603a02e9d2e.tar.gz
gnunet-6f1bbf8034e41837c33c5e3a7270c603a02e9d2e.zip
PEERSTORE store function
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r--src/peerstore/peerstore_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index 959d2488a..ffe973df4 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -232,6 +232,7 @@ GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
232 232
233/** 233/**
234 * Disconnect from the PEERSTORE service 234 * Disconnect from the PEERSTORE service
235 * Do not call in case of pending requests
235 * 236 *
236 * @param h handle to disconnect 237 * @param h handle to disconnect
237 */ 238 */
@@ -583,7 +584,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h,
583 LOG (GNUNET_ERROR_TYPE_DEBUG, 584 LOG (GNUNET_ERROR_TYPE_DEBUG,
584 "Storing value (size: %lu) for subsytem `%s' and peer `%s'\n", 585 "Storing value (size: %lu) for subsytem `%s' and peer `%s'\n",
585 size, sub_system, GNUNET_i2s (peer)); 586 size, sub_system, GNUNET_i2s (peer));
586 sub_system_size = strlen(sub_system); 587 sub_system_size = strlen(sub_system) + 1;
587 request_size = sizeof(struct StoreRequestMessage) + sub_system_size + size; 588 request_size = sizeof(struct StoreRequestMessage) + sub_system_size + size;
588 rc = GNUNET_malloc(sizeof(struct GNUNET_PEERSTORE_RequestContext) + request_size); 589 rc = GNUNET_malloc(sizeof(struct GNUNET_PEERSTORE_RequestContext) + request_size);
589 rc->h = h; 590 rc->h = h;