diff options
author | Tom Gundersen <teg@jklm.no> | 2016-01-19 01:44:20 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-01-19 01:44:20 +0100 |
commit | bcbd1d0cd5a1e6ff068f251c99ed7905223fed67 (patch) | |
tree | aa39418fafed272f9c13e91e8a9383351cd91d9b /src/resolve/resolved-dns-packet.c | |
parent | 6228dc518f13f189a68144ab46bf055469615e3b (diff) | |
parent | cc450722a02ab9c59bca1d9a5b5012f356336a8c (diff) |
Merge pull request #2358 from poettering/dnssec16
sixteenth DNSSEC patch set
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index 0acbcfe261..93867bedb7 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -499,7 +499,6 @@ int dns_packet_append_name( const char *z = name; char label[DNS_LABEL_MAX]; size_t n = 0; - int k; if (allow_compression) n = PTR_TO_SIZE(hashmap_get(p->names, name)); @@ -519,17 +518,6 @@ int dns_packet_append_name( if (r < 0) goto fail; - if (p->protocol == DNS_PROTOCOL_DNS) - k = dns_label_apply_idna(label, r, label, sizeof(label)); - else - k = dns_label_undo_idna(label, r, label, sizeof(label)); - if (k < 0) { - r = k; - goto fail; - } - if (k > 0) - r = k; - r = dns_packet_append_label(p, label, r, canonical_candidate, &n); if (r < 0) goto fail; |