]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix typo in DNS_EDE_RCODE_PROHIBITIED constant name
authorTobias Klauser <tklauser@distanz.ch>
Tue, 7 Jan 2025 12:29:45 +0000 (13:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2025 15:48:44 +0000 (16:48 +0100)
Drop the extra `I` and rename the constant to DNS_EDE_RCODE_PROHIBITED
in accordance with the error code string.

src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-packet.h

index c414ca800c3c623ca42ccbd2c2fc27aa6fe0f96c..4c82d38bcc29072cba9630241efdbb8092aa91ba 100644 (file)
@@ -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",
index 6fe30bca738814f733cb4019afabf5fd5f0654c5..0001d1e237c482ca3b969cf1414c8266d9b11d43 100644 (file)
@@ -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 */