X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=trp%2Ftrp_ptable_encoders.c;h=db2658c7a019df35f31a4041d1627975f4d1f969;hb=HEAD;hp=ea97a10106d3c003d380e7c5ae3cdaef4f7d3092;hpb=aa5b6ae3d5d45cadb63b00937f7b6c995933538a;p=trust_router.git diff --git a/trp/trp_ptable_encoders.c b/trp/trp_ptable_encoders.c index ea97a10..db2658c 100644 --- a/trp/trp_ptable_encoders.c +++ b/trp/trp_ptable_encoders.c @@ -62,7 +62,7 @@ json_t *trp_ptable_to_json(TRP_PTABLE *ptbl) json_t *ptbl_json = json_array(); TRP_PEER *peer = NULL; - for (trp_ptable_iter_first(iter, ptbl); + for (peer = trp_ptable_iter_first(iter, ptbl); peer != NULL; peer = trp_ptable_iter_next(iter)) { json_array_append_new(ptbl_json, trp_peer_to_json(peer));