projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c729ba3
)
fix: increase address counter only when address could be converted
author
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 27 May 2014 09:43:16 +0000
(09:43 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 27 May 2014 09:43:16 +0000
(09:43 +0000)
src/peerinfo-tool/gnunet-peerinfo.c
patch
|
blob
|
history
diff --git
a/src/peerinfo-tool/gnunet-peerinfo.c
b/src/peerinfo-tool/gnunet-peerinfo.c
index 7157264e80daffec99993a2136311dc2c63760e0..05d8c35459bfa2b138b430518aa1591b2be7a84e 100644
(file)
--- 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);
}