diff options
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>"; |