diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-02 20:38:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-02 20:38:01 +0000 |
commit | fb1487e62d1c659c45e2997f80b76f7c7b8c824c (patch) | |
tree | eaa6811d751dc4060f04c7284e0fa47d4b8975fc /src/transport/gnunet-service-transport_plugins.c | |
parent | c4bcbfbe216ca485637452f9060f439098e67ab9 (diff) | |
download | gnunet-fb1487e62d1c659c45e2997f80b76f7c7b8c824c.tar.gz gnunet-fb1487e62d1c659c45e2997f80b76f7c7b8c824c.zip |
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 5cdc55518..db2bbd19f 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -412,14 +412,18 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
412 | return "<plugin unknown>"; | 412 | return "<plugin unknown>"; |
413 | if (0 == address->address_length) | 413 | if (0 == address->address_length) |
414 | { | 414 | { |
415 | GNUNET_snprintf (unable_to_show, sizeof (unable_to_show), | 415 | GNUNET_snprintf (unable_to_show, |
416 | sizeof (unable_to_show), | ||
416 | "<unable to stringify %u-byte long address of %s transport>", | 417 | "<unable to stringify %u-byte long address of %s transport>", |
417 | (unsigned int) address->address_length, | 418 | (unsigned int) address->address_length, |
418 | address->transport_name); | 419 | address->transport_name); |
419 | return unable_to_show; | 420 | return unable_to_show; |
420 | } | 421 | } |
421 | return (NULL != (s = api->address_to_string (NULL, address->address, | 422 | return (NULL != (s = api->address_to_string (NULL, |
422 | address->address_length)) ? s : "<invalid>"); | 423 | address->address, |
424 | address->address_length)) | ||
425 | ? s | ||
426 | : "<invalid>"); | ||
423 | } | 427 | } |
424 | 428 | ||
425 | 429 | ||