Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/resolv PR/52578: Benjamin M. Schwartz Set the AD bi...
details: https://anonhg.NetBSD.org/src/rev/4cd71a7e4e03
branches: trunk
changeset: 356479:4cd71a7e4e03
user: christos <christos%NetBSD.org@localhost>
date: Thu Sep 28 23:32:01 2017 +0000
description:
PR/52578: Benjamin M. Schwartz Set the AD bit when DNSSEC is enabled
(RFC 6840 Section 5.7).
diffstat:
lib/libc/resolv/res_mkquery.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 619afa44c049 -r 4cd71a7e4e03 lib/libc/resolv/res_mkquery.c
--- a/lib/libc/resolv/res_mkquery.c Thu Sep 28 18:08:04 2017 +0000
+++ b/lib/libc/resolv/res_mkquery.c Thu Sep 28 23:32:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_mkquery.c,v 1.15 2015/02/24 17:56:20 christos Exp $ */
+/* $NetBSD: res_mkquery.c,v 1.16 2017/09/28 23:32:01 christos Exp $ */
/*
* Portions Copyright (C) 2004, 2005, 2008 Internet Systems Consortium, Inc. ("ISC")
@@ -72,7 +72,7 @@
static const char sccsid[] = "@(#)res_mkquery.c 8.1 (Berkeley) 6/4/93";
static const char rcsid[] = "Id: res_mkquery.c,v 1.10 2008/12/11 09:59:00 marka Exp";
#else
-__RCSID("$NetBSD: res_mkquery.c,v 1.15 2015/02/24 17:56:20 christos Exp $");
+__RCSID("$NetBSD: res_mkquery.c,v 1.16 2017/09/28 23:32:01 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -142,6 +142,7 @@
hp->id = htons(statp->id);
hp->opcode = op;
hp->rd = (statp->options & RES_RECURSE) != 0U;
+ hp->ad = (statp->options & RES_USE_DNSSEC) != 0U;
hp->rcode = NOERROR;
cp = buf + HFIXEDSZ;
ep = buf + buflen;
Home |
Main Index |
Thread Index |
Old Index