aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2022-11-07 15:48:11 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2022-11-14 11:23:32 +0000
commit48aa2fa71b2d08bf65278c404325e6df419db49e (patch)
treeb5b8ef747275977bc131e0347be9f2de5870bc0b /lib/libc/net
parentd488e8d0372d5c79fb2cb1aa6c41a59fbfb62479 (diff)
libc: Don't warn about RRSIG replies.
PR: 213178 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37303 (cherry picked from commit 817f1f3064db25f821032c8fffb131183206bba1)
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getaddrinfo.c2
-rw-r--r--lib/libc/net/gethostbydns.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index a33f240bc376..abe4eb17cf72 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -2091,7 +2091,7 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype,
} else if (type != qtype) {
#ifdef DEBUG
if (type != T_KEY && type != T_SIG &&
- type != ns_t_dname)
+ type != T_DNAME && type != T_RRSIG)
syslog(LOG_NOTICE|LOG_AUTH,
"gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
qname, p_class(C_IN), p_type(qtype),
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index 09800b874f90..142b67f7ace9 100644
--- a/lib/libc/net/gethostbydns.c
+++ b/lib/libc/net/gethostbydns.c
@@ -292,11 +292,14 @@ gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype,
continue;
}
if (type != qtype) {
- if (type != T_SIG && type != ns_t_dname)
+#ifdef DEBUG
+ if (type != T_KEY && type != T_SIG &&
+ type != T_DNAME && type != T_RRSIG)
syslog(LOG_NOTICE|LOG_AUTH,
"gethostby*.gethostanswer: asked for \"%s %s %s\", got type \"%s\"",
qname, p_class(C_IN), p_type(qtype),
p_type(type));
+#endif
cp += n;
continue; /* XXX - had_error++ ? */
}