diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-27 11:49:22 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-27 11:49:22 +0000 |
commit | d34cadddefa8b4d216eb31c7123e6884497a11b6 (patch) | |
tree | 0acabc3970020efb21c1cf49e199eb4290b1ee8a /src/transport/transport_api_address_to_string.c | |
parent | 2cecee44de434344273c797e6db4878a81e2f6fa (diff) | |
download | gnunet-d34cadddefa8b4d216eb31c7123e6884497a11b6.tar.gz gnunet-d34cadddefa8b4d216eb31c7123e6884497a11b6.zip |
minor changes
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r-- | src/transport/transport_api_address_to_string.c | 3 |
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) | |||
104 | 104 | ||
105 | if (GNUNET_NO == result) | 105 | if (GNUNET_NO == result) |
106 | { | 106 | { |
107 | alucb->cb (alucb->cb_cls, NULL, GNUNET_SYSERR); | 107 | alucb->cb (alucb->cb_cls, empty_str, GNUNET_SYSERR); |
108 | 108 | ||
109 | /* expect more replies */ | 109 | /* expect more replies */ |
110 | GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb, | 110 | GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb, |
@@ -112,7 +112,6 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg) | |||
112 | return; | 112 | return; |
113 | } | 113 | } |
114 | 114 | ||
115 | |||
116 | address = (const char *) &atsm[1]; | 115 | address = (const char *) &atsm[1]; |
117 | if ( (addr_len > (size - (sizeof (struct AddressToStringResultMessage)))) || | 116 | if ( (addr_len > (size - (sizeof (struct AddressToStringResultMessage)))) || |
118 | (address[addr_len -1] != '\0') ) | 117 | (address[addr_len -1] != '\0') ) |