summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-answer.c
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2016-07-12 02:47:25 +0200
committerGitHub <noreply@github.com>2016-07-12 02:47:25 +0200
commite18ec3c71d6450de898cd46e659b560e18ee8430 (patch)
tree1028bd5ea783209d44aefa0acacd277d2dea44ab /src/resolve/resolved-dns-answer.c
parentd6cdc4cd4b58cfff4b44e1201e54f05b4a38d2d4 (diff)
parent61233823aa4b0fe9605e0a7cd77261b3c5bca8e9 (diff)
Merge pull request #3702 from torstehu/fix-typo
treewide: fix typos and remove accidental repetition of words
Diffstat (limited to 'src/resolve/resolved-dns-answer.c')
-rw-r--r--src/resolve/resolved-dns-answer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c
index 13dcba8421..ab85754bf7 100644
--- a/src/resolve/resolved-dns-answer.c
+++ b/src/resolve/resolved-dns-answer.c
@@ -702,7 +702,7 @@ void dns_answer_order_by_scope(DnsAnswer *a, bool prefer_link_local) {
if (a->items[i].rr->key->class == DNS_CLASS_IN &&
((a->items[i].rr->key->type == DNS_TYPE_A && in_addr_is_link_local(AF_INET, (union in_addr_union*) &a->items[i].rr->a.in_addr) != prefer_link_local) ||
(a->items[i].rr->key->type == DNS_TYPE_AAAA && in_addr_is_link_local(AF_INET6, (union in_addr_union*) &a->items[i].rr->aaaa.in6_addr) != prefer_link_local)))
- /* Order address records that are are not preferred to the end of the array */
+ /* Order address records that are not preferred to the end of the array */
items[end--] = a->items[i];
else
/* Order all other records to the beginning of the array */