summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-24 12:56:06 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-24 12:56:06 +0000
commiteb614a4e0dea54cbc3146e938dcde709c879f8d8 (patch)
tree4d7c4adc384462706a243ec6685504ddf5a35314 /src/transport/plugin_transport_http_common.c
parent5742df4c179024daeb97780979482607f33790af (diff)
-fix logic
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index fc4c4a211..7ec8fa1e9 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -51,18 +51,10 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
asc, void *asc_cls)
{
const char *saddr = (const char *) addr;
- if (NULL == saddr)
- {
- asc (asc_cls, NULL);
- return;
- }
- if (0 >= addrlen)
- if (NULL == saddr)
- {
- asc (asc_cls, NULL);
- return;
- }
- if (saddr[addrlen-1] != '\0')
+
+ if ( (NULL == saddr) ||
+ (0 >= addrlen) ||
+ ('\0' != saddr[addrlen-1]) )
{
asc (asc_cls, NULL);
return;