diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-05-29 11:19:50 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-05-29 11:19:50 +0000 |
commit | b5454a701bde16ebc577fbb87d09f5dc1ead587e (patch) | |
tree | af5eac846653e86cff5bf158a1e740459fd438e5 /src/peerstore/gnunet-service-peerstore.c | |
parent | e0c01618605c1ef2901b2002aed6801858603305 (diff) | |
download | gnunet-b5454a701bde16ebc577fbb87d09f5dc1ead587e.tar.gz gnunet-b5454a701bde16ebc577fbb87d09f5dc1ead587e.zip |
- Fix #4532
Diffstat (limited to 'src/peerstore/gnunet-service-peerstore.c')
-rw-r--r-- | src/peerstore/gnunet-service-peerstore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/peerstore/gnunet-service-peerstore.c b/src/peerstore/gnunet-service-peerstore.c index 048201c77..af6438bb2 100644 --- a/src/peerstore/gnunet-service-peerstore.c +++ b/src/peerstore/gnunet-service-peerstore.c | |||
@@ -251,7 +251,7 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
251 | * @param emsg error message or NULL if no errors | 251 | * @param emsg error message or NULL if no errors |
252 | * @return #GNUNET_YES to continue iteration | 252 | * @return #GNUNET_YES to continue iteration |
253 | */ | 253 | */ |
254 | static int | 254 | static void |
255 | record_iterator (void *cls, const struct GNUNET_PEERSTORE_Record *record, | 255 | record_iterator (void *cls, const struct GNUNET_PEERSTORE_Record *record, |
256 | const char *emsg) | 256 | const char *emsg) |
257 | { | 257 | { |
@@ -270,7 +270,7 @@ record_iterator (void *cls, const struct GNUNET_PEERSTORE_Record *record, | |||
270 | GNUNET_SERVER_receive_done (cls_record->client, | 270 | GNUNET_SERVER_receive_done (cls_record->client, |
271 | NULL == emsg ? GNUNET_OK : GNUNET_SYSERR); | 271 | NULL == emsg ? GNUNET_OK : GNUNET_SYSERR); |
272 | PEERSTORE_destroy_record (cls_record); | 272 | PEERSTORE_destroy_record (cls_record); |
273 | return GNUNET_NO; | 273 | return; |
274 | } | 274 | } |
275 | 275 | ||
276 | srm = | 276 | srm = |
@@ -282,7 +282,6 @@ record_iterator (void *cls, const struct GNUNET_PEERSTORE_Record *record, | |||
282 | (struct GNUNET_MessageHeader *) | 282 | (struct GNUNET_MessageHeader *) |
283 | srm, GNUNET_NO); | 283 | srm, GNUNET_NO); |
284 | GNUNET_free (srm); | 284 | GNUNET_free (srm); |
285 | return GNUNET_YES; | ||
286 | } | 285 | } |
287 | 286 | ||
288 | 287 | ||