Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Don't complain about additional DNAME records received when ...



details:   https://anonhg.NetBSD.org/src/rev/fa312f815a67
branches:  trunk
changeset: 957125:fa312f815a67
user:      is <is%NetBSD.org@localhost>
date:      Wed Nov 18 12:49:52 2020 +0000

description:
Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

diffstat:

 include/arpa/nameser_compat.h |  3 ++-
 lib/libc/net/getaddrinfo.c    |  6 +++---
 lib/libc/net/gethnamaddr.c    |  6 +++---
 3 files changed, 8 insertions(+), 7 deletions(-)

diffs (71 lines):

diff -r 889917478d51 -r fa312f815a67 include/arpa/nameser_compat.h
--- a/include/arpa/nameser_compat.h     Wed Nov 18 07:42:46 2020 +0000
+++ b/include/arpa/nameser_compat.h     Wed Nov 18 12:49:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nameser_compat.h,v 1.7 2020/06/28 02:16:19 gutteridge Exp $    */
+/*     $NetBSD: nameser_compat.h,v 1.8 2020/11/18 12:49:52 is Exp $    */
 
 /* Copyright (c) 1983, 1989
  *    The Regents of the University of California.  All rights reserved.
@@ -210,6 +210,7 @@
 #define T_ATMA         ns_t_atma
 #define T_NAPTR                ns_t_naptr
 #define T_A6           ns_t_a6
+#define T_DNAME                ns_t_dname
 #define        T_TSIG          ns_t_tsig
 #define        T_IXFR          ns_t_ixfr
 #define T_AXFR         ns_t_axfr
diff -r 889917478d51 -r fa312f815a67 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Wed Nov 18 07:42:46 2020 +0000
+++ b/lib/libc/net/getaddrinfo.c        Wed Nov 18 12:49:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getaddrinfo.c,v 1.119 2018/12/13 04:41:41 dholland Exp $       */
+/*     $NetBSD: getaddrinfo.c,v 1.120 2020/11/18 12:49:52 is Exp $     */
 /*     $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $    */
 
 /*
@@ -55,7 +55,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.119 2018/12/13 04:41:41 dholland Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.120 2020/11/18 12:49:52 is Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #ifndef RUMP_ACTION
@@ -1821,7 +1821,7 @@
                                continue;
                        }
                } else if (type != qtype) {
-                       if (type != T_KEY && type != T_SIG) {
+                       if (type != T_KEY && type != T_SIG && type != T_DNAME) {
                                struct syslog_data sd = SYSLOG_DATA_INIT;
                                syslog_r(LOG_NOTICE|LOG_AUTH, &sd,
               "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
diff -r 889917478d51 -r fa312f815a67 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Wed Nov 18 07:42:46 2020 +0000
+++ b/lib/libc/net/gethnamaddr.c        Wed Nov 18 12:49:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.92 2015/09/22 16:16:02 christos Exp $        */
+/*     $NetBSD: gethnamaddr.c,v 1.93 2020/11/18 12:49:52 is Exp $      */
 
 /*
  * ++Copyright++ 1985, 1988, 1993
@@ -57,7 +57,7 @@
 static char sccsid[] = "@(#)gethostnamadr.c    8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.92 2015/09/22 16:16:02 christos Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.93 2020/11/18 12:49:52 is Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -358,7 +358,7 @@
                        continue;
                }
                if (type != qtype) {
-                       if (type != T_KEY && type != T_SIG)
+                       if (type != T_KEY && type != T_SIG && type != T_DNAME)
                                syslog(LOG_NOTICE|LOG_AUTH,
               "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
                                       qname, p_class(C_IN), p_type(qtype),



Home | Main Index | Thread Index | Old Index