diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-02 22:25:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-02 22:25:48 +0000 |
commit | 69c3a52cfa679175da8f06bdcb8e2e4195465e44 (patch) | |
tree | 73109126cfcf1a807c5dc1e778f40b955fc959c5 /src/transport/gnunet-service-transport_plugins.c | |
parent | c42deb089faffd654e27bf661ce85d5c1bb38b7a (diff) | |
download | gnunet-69c3a52cfa679175da8f06bdcb8e2e4195465e44.tar.gz gnunet-69c3a52cfa679175da8f06bdcb8e2e4195465e44.zip |
avoid passing both PeerIdentity and Address (which contains PeerIdentity) if address is always present as then this is redundant
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 44e6a2a65..e8b795f9d 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -356,10 +356,7 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
356 | static const char *s; | 356 | static const char *s; |
357 | 357 | ||
358 | if (NULL == address) | 358 | if (NULL == address) |
359 | { | 359 | return "<NULL>"; |
360 | GNUNET_break (0); /* a HELLO address cannot be NULL */ | ||
361 | return "<invalid>"; | ||
362 | } | ||
363 | if (0 == address->address_length) | 360 | if (0 == address->address_length) |
364 | return TRANSPORT_SESSION_INBOUND_STRING; /* Addresse with length 0 are inbound, address->address itself may be NULL */ | 361 | return TRANSPORT_SESSION_INBOUND_STRING; /* Addresse with length 0 are inbound, address->address itself may be NULL */ |
365 | api = GST_plugins_printer_find (address->transport_name); | 362 | api = GST_plugins_printer_find (address->transport_name); |