From: Tobias Klauser Date: Tue, 7 Jan 2025 12:29:45 +0000 (+0100) Subject: resolve: fix typo in DNS_EDE_RCODE_PROHIBITIED constant name X-Git-Tag: v258-rc1~1676 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9379b23be3e73072a1be4d02fa74964c0bfcd080;p=thirdparty%2Fsystemd.git resolve: fix typo in DNS_EDE_RCODE_PROHIBITIED constant name Drop the extra `I` and rename the constant to DNS_EDE_RCODE_PROHIBITED in accordance with the error code string. --- diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index c414ca800c3..4c82d38bcc2 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -2979,7 +2979,7 @@ static const char* const dns_ede_rcode_table[_DNS_EDE_RCODE_MAX_DEFINED] = { [DNS_EDE_RCODE_BLOCKED] = "Blocked", [DNS_EDE_RCODE_CENSORED] = "Censored", [DNS_EDE_RCODE_FILTERED] = "Filtered", - [DNS_EDE_RCODE_PROHIBITIED] = "Prohibited", + [DNS_EDE_RCODE_PROHIBITED] = "Prohibited", [DNS_EDE_RCODE_STALE_NXDOMAIN_ANSWER] = "Stale NXDOMAIN Answer", [DNS_EDE_RCODE_NOT_AUTHORITATIVE] = "Not Authoritative", [DNS_EDE_RCODE_NOT_SUPPORTED] = "Not Supported", diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index 6fe30bca738..0001d1e237c 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -335,7 +335,7 @@ enum { DNS_EDE_RCODE_BLOCKED = 15, /* RFC 8914, Section 4.16 */ DNS_EDE_RCODE_CENSORED = 16, /* RFC 8914, Section 4.17 */ DNS_EDE_RCODE_FILTERED = 17, /* RFC 8914, Section 4.18 */ - DNS_EDE_RCODE_PROHIBITIED = 18, /* RFC 8914, Section 4.19 */ + DNS_EDE_RCODE_PROHIBITED = 18, /* RFC 8914, Section 4.19 */ DNS_EDE_RCODE_STALE_NXDOMAIN_ANSWER = 19, /* RFC 8914, Section 4.20 */ DNS_EDE_RCODE_NOT_AUTHORITATIVE = 20, /* RFC 8914, Section 4.21 */ DNS_EDE_RCODE_NOT_SUPPORTED = 21, /* RFC 8914, Section 4.22 */