summaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-05-27 11:49:22 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-05-27 11:49:22 +0000
commitd34cadddefa8b4d216eb31c7123e6884497a11b6 (patch)
tree0acabc3970020efb21c1cf49e199eb4290b1ee8a /src/transport/transport_api_address_to_string.c
parent2cecee44de434344273c797e6db4878a81e2f6fa (diff)
minor changes
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c
index f383a44b4..96b321dea 100644
--- a/src/transport/transport_api_address_to_string.c
+++ b/src/transport/transport_api_address_to_string.c
@@ -104,7 +104,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
if (GNUNET_NO == result)
{
- alucb->cb (alucb->cb_cls, NULL, GNUNET_SYSERR);
+ alucb->cb (alucb->cb_cls, empty_str, GNUNET_SYSERR);
/* expect more replies */
GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb,
@@ -112,7 +112,6 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
return;
}
-
address = (const char *) &atsm[1];
if ( (addr_len > (size - (sizeof (struct AddressToStringResultMessage)))) ||
(address[addr_len -1] != '\0') )