diff options
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') ) |