diff options
Diffstat (limited to 'src/gns/gnunet-service-gns_interceptor.c')
-rw-r--r-- | src/gns/gnunet-service-gns_interceptor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c index 1a14eb96e..069975fc9 100644 --- a/src/gns/gnunet-service-gns_interceptor.c +++ b/src/gns/gnunet-service-gns_interceptor.c | |||
@@ -107,7 +107,6 @@ reply_to_dns(void* cls, uint32_t rd_count, | |||
107 | 107 | ||
108 | if (rd[i].record_type == ilh->query->type) | 108 | if (rd[i].record_type == ilh->query->type) |
109 | { | 109 | { |
110 | num_answers++; | ||
111 | answer_records[i].name = ilh->query->name; | 110 | answer_records[i].name = ilh->query->name; |
112 | answer_records[i].type = rd[i].record_type; | 111 | answer_records[i].type = rd[i].record_type; |
113 | answer_records[i].data.raw.data_len = rd[i].data_size; | 112 | answer_records[i].data.raw.data_len = rd[i].data_size; |
@@ -279,6 +278,8 @@ handle_dns_request(void *cls, | |||
279 | if (*(tldoffset-i) == '.') | 278 | if (*(tldoffset-i) == '.') |
280 | break; | 279 | break; |
281 | } | 280 | } |
281 | |||
282 | i--; | ||
282 | 283 | ||
283 | if ((i==strlen(GNUNET_GNS_TLD)-1) | 284 | if ((i==strlen(GNUNET_GNS_TLD)-1) |
284 | && (0 == strcmp(tldoffset-i, GNUNET_GNS_TLD))) | 285 | && (0 == strcmp(tldoffset-i, GNUNET_GNS_TLD))) |