diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 09:15:06 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 09:15:06 +0000 |
commit | f261d397b6a540d33531fc77060104429de06016 (patch) | |
tree | b753b79cb84fabcfa810113d9d57614e7130736b /src/transport/gnunet-service-transport_plugins.c | |
parent | 87029271f1dee1ee1bea6648fde20a0cf8dc6c15 (diff) | |
download | gnunet-f261d397b6a540d33531fc77060104429de06016.tar.gz gnunet-f261d397b6a540d33531fc77060104429de06016.zip |
fix for printing
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 4f2a8ff94..9a55ac919 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -325,7 +325,12 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
325 | static char unable_to_show[1024]; | 325 | static char unable_to_show[1024]; |
326 | 326 | ||
327 | if (address == NULL) | 327 | if (address == NULL) |
328 | return "<inbound>"; | 328 | { |
329 | GNUNET_break (0); /* a HELLO address cannot be NULL */ | ||
330 | return "<invalid>"; | ||
331 | } | ||
332 | if (0 == address->address_length) | ||
333 | return "<inbound>"; /* Addresse with length 0 are inbound, address->address itself may be NULL */ | ||
329 | api = GST_plugins_printer_find (address->transport_name); | 334 | api = GST_plugins_printer_find (address->transport_name); |
330 | if (NULL == api) | 335 | if (NULL == api) |
331 | return "<plugin unknown>"; | 336 | return "<plugin unknown>"; |