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/peerstore_api.c | |
parent | e0c01618605c1ef2901b2002aed6801858603305 (diff) | |
download | gnunet-b5454a701bde16ebc577fbb87d09f5dc1ead587e.tar.gz gnunet-b5454a701bde16ebc577fbb87d09f5dc1ead587e.zip |
- Fix #4532
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r-- | src/peerstore/peerstore_api.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index f1c5ccd32..0339ff93a 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -670,7 +670,6 @@ handle_iterate_result (void *cls, const struct GNUNET_MessageHeader *msg) | |||
670 | void *callback_cls; | 670 | void *callback_cls; |
671 | uint16_t msg_type; | 671 | uint16_t msg_type; |
672 | struct GNUNET_PEERSTORE_Record *record; | 672 | struct GNUNET_PEERSTORE_Record *record; |
673 | int continue_iter; | ||
674 | 673 | ||
675 | ic = h->iterate_head; | 674 | ic = h->iterate_head; |
676 | if (NULL == ic) | 675 | if (NULL == ic) |
@@ -704,16 +703,13 @@ handle_iterate_result (void *cls, const struct GNUNET_MessageHeader *msg) | |||
704 | { | 703 | { |
705 | record = PEERSTORE_parse_record_message (msg); | 704 | record = PEERSTORE_parse_record_message (msg); |
706 | if (NULL == record) | 705 | if (NULL == record) |
707 | continue_iter = | 706 | callback (callback_cls, NULL, |
708 | callback (callback_cls, NULL, | ||
709 | _("Received a malformed response from service.")); | 707 | _("Received a malformed response from service.")); |
710 | else | 708 | else |
711 | { | 709 | { |
712 | continue_iter = callback (callback_cls, record, NULL); | 710 | callback (callback_cls, record, NULL); |
713 | PEERSTORE_destroy_record (record); | 711 | PEERSTORE_destroy_record (record); |
714 | } | 712 | } |
715 | if (GNUNET_NO == continue_iter) | ||
716 | ic->callback = NULL; | ||
717 | } | 713 | } |
718 | } | 714 | } |
719 | 715 | ||