diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-02 09:40:12 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-02 09:40:12 +0000 |
commit | 800c3b54ba9a67ad995d6b5c1ecbffe224f4676d (patch) | |
tree | 43347995315ca4cdd5b6d1a8dd2f0e7cf0a71134 /src/transport/plugin_transport_http_common.c | |
parent | da3d84fb0f3e5a681976b53d43275b2d9b401886 (diff) | |
download | gnunet-800c3b54ba9a67ad995d6b5c1ecbffe224f4676d.tar.gz gnunet-800c3b54ba9a67ad995d6b5c1ecbffe224f4676d.zip |
fix semantic for address_to_string
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r-- | src/transport/plugin_transport_http_common.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index 131624f16..f5712db58 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c | |||
@@ -208,17 +208,14 @@ http_common_plugin_address_pretty_printer (void *cls, | |||
208 | { | 208 | { |
209 | const struct HttpAddress *address = addr; | 209 | const struct HttpAddress *address = addr; |
210 | 210 | ||
211 | if (NULL == | 211 | if (NULL |
212 | http_common_plugin_address_to_string (NULL, type, | 212 | == http_common_plugin_address_to_string (NULL, type, address, addrlen)) |
213 | address, addrlen)) | 213 | asc (asc_cls, NULL, GNUNET_SYSERR); |
214 | { | 214 | else |
215 | asc (asc_cls, NULL); | 215 | asc (asc_cls, |
216 | return; | 216 | http_common_plugin_address_to_string (NULL, type, address, addrlen), |
217 | } | 217 | GNUNET_OK); |
218 | asc (asc_cls, http_common_plugin_address_to_string (NULL, | 218 | asc (asc_cls, NULL, GNUNET_OK); |
219 | type, | ||
220 | address, addrlen)); | ||
221 | asc (asc_cls, NULL); | ||
222 | } | 219 | } |
223 | 220 | ||
224 | 221 | ||