-fix time assertion introduce in last patch
[oweals/gnunet.git] / src / transport / plugin_transport_http_common.c
index f5712db58a867fe5631c6f5887fc02ce68e8702c..763c252ea9efab4d0e5f9b758cdbad6418a6a00d 100644 (file)
@@ -207,18 +207,24 @@ http_common_plugin_address_pretty_printer (void *cls,
                                            void *asc_cls)
 {
   const struct HttpAddress *address = addr;
-
-  if (NULL
-      == http_common_plugin_address_to_string (NULL, type, address, addrlen))
-    asc (asc_cls, NULL, GNUNET_SYSERR);
-  else
-    asc (asc_cls,
-        http_common_plugin_address_to_string (NULL, type, address, addrlen),
-        GNUNET_OK);
-  asc (asc_cls, NULL, GNUNET_OK);
+  const char *ret;
+
+  ret = http_common_plugin_address_to_string (NULL,
+                                              type,
+                                              address,
+                                              addrlen);
+  asc (asc_cls,
+       ret,
+       (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK);
+  asc (asc_cls,
+       NULL,
+       GNUNET_OK);
 }
 
 
+/**
+ * FIXME.
+ */
 const char *
 http_common_plugin_address_to_url (void *cls,
                                    const void *addr,