aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r--src/transport/gnunet-transport.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 6ff731431..85f97e04c 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -1079,21 +1079,25 @@ process_peer_string (void *cls, const char *address, int res)
1079{ 1079{
1080 struct PeerResolutionContext *rc = cls; 1080 struct PeerResolutionContext *rc = cls;
1081 1081
1082 if (address != NULL ) 1082 if (GNUNET_SYSERR == res)
1083 { 1083 {
1084 if (GNUNET_SYSERR == res) 1084 FPRINTF (stderr, "Failed to convert address for peer `%s' plugin `%s' length %lu to string \n",
1085 { 1085 GNUNET_i2s (&rc->id),
1086 FPRINTF (stderr, "Failed to convert address for peer `%s' plugin `%s' length %lu to string \n", 1086 rc->addrcp->transport_name,
1087 GNUNET_i2s (&rc->id), 1087 rc->addrcp->address_length);
1088 rc->addrcp->transport_name, 1088 print_info (&rc->id, rc->transport, NULL, rc->state, rc->state_timeout);
1089 rc->addrcp->address_length);
1090 print_info (&rc->id, rc->transport, NULL, rc->state, rc->state_timeout);
1091 }
1092 else
1093 print_info (&rc->id, rc->transport, address, rc->state, rc->state_timeout);
1094 rc->printed = GNUNET_YES; 1089 rc->printed = GNUNET_YES;
1090 return;
1095 } 1091 }
1096 else 1092
1093 if ((GNUNET_OK == res) && (address != NULL))
1094 {
1095 print_info (&rc->id, rc->transport, address, rc->state, rc->state_timeout);
1096 rc->printed = GNUNET_YES;
1097 return; /* Wait for done call */
1098 }
1099
1100 if (NULL == address)
1097 { 1101 {
1098 /* done */ 1102 /* done */
1099 GNUNET_assert(address_resolutions > 0); 1103 GNUNET_assert(address_resolutions > 0);