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_unix.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_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 94c160144..792d7718e 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -1421,18 +1421,11 @@ unix_plugin_address_pretty_printer (void *cls, const char *type, | |||
1421 | { | 1421 | { |
1422 | if ((NULL != addr) && (addrlen > 0)) | 1422 | if ((NULL != addr) && (addrlen > 0)) |
1423 | { | 1423 | { |
1424 | asc (asc_cls, unix_address_to_string (NULL, addr, addrlen)); | 1424 | asc (asc_cls, unix_address_to_string (NULL, addr, addrlen), GNUNET_OK); |
1425 | } | ||
1426 | else if (0 == addrlen) | ||
1427 | { | ||
1428 | asc (asc_cls, TRANSPORT_SESSION_INBOUND_STRING); | ||
1429 | } | 1425 | } |
1430 | else | 1426 | else |
1431 | { | 1427 | asc (asc_cls, NULL, GNUNET_SYSERR); |
1432 | GNUNET_break (0); | 1428 | asc (asc_cls, NULL, GNUNET_OK); |
1433 | asc (asc_cls, "<invalid UNIX address>"); | ||
1434 | } | ||
1435 | asc (asc_cls, NULL); | ||
1436 | } | 1429 | } |
1437 | 1430 | ||
1438 | 1431 | ||