diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-27 09:43:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-27 09:43:16 +0000 |
commit | d5d8ed2d78cc6ccba982f6855755dc9ba52c6105 (patch) | |
tree | 6d9b547ecd815ba85df6b013cc04296297730571 | |
parent | c729ba3d33c044ffac990237330c11a15ae487fd (diff) |
fix: increase address counter only when address could be converted
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 7157264e80..05d8c35459 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c @@ -274,14 +274,17 @@ process_resolved_address (void *cls, const char *address, int res) return; } + ar->atsc = NULL; if (GNUNET_SYSERR == res) { FPRINTF (stderr, _("Failure: Cannot convert address to string for peer `%s'\n"), GNUNET_i2s (&ar->pc->peer)); } - ar->atsc = NULL; - pc->num_addresses++; + else + { + pc->num_addresses++; + } if (pc->num_addresses == pc->address_list_size) dump_pc (pc); } |