diff options
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r-- | src/transport/gnunet-transport.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index d4e16face..6ff731431 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -1081,7 +1081,16 @@ process_peer_string (void *cls, const char *address, int res) | |||
1081 | 1081 | ||
1082 | if (address != NULL ) | 1082 | if (address != NULL ) |
1083 | { | 1083 | { |
1084 | print_info (&rc->id, rc->transport, address, rc->state, rc->state_timeout); | 1084 | if (GNUNET_SYSERR == res) |
1085 | { | ||
1086 | FPRINTF (stderr, "Failed to convert address for peer `%s' plugin `%s' length %lu to string \n", | ||
1087 | GNUNET_i2s (&rc->id), | ||
1088 | rc->addrcp->transport_name, | ||
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); | ||
1085 | rc->printed = GNUNET_YES; | 1094 | rc->printed = GNUNET_YES; |
1086 | } | 1095 | } |
1087 | else | 1096 | else |
@@ -1099,7 +1108,7 @@ process_peer_string (void *cls, const char *address, int res) | |||
1099 | } | 1108 | } |
1100 | else | 1109 | else |
1101 | { | 1110 | { |
1102 | print_info (&rc->id, rc->transport, "<unable to resolve address>", | 1111 | print_info (&rc->id, rc->transport, NULL, |
1103 | rc->state, rc->state_timeout); | 1112 | rc->state, rc->state_timeout); |
1104 | } | 1113 | } |
1105 | } | 1114 | } |