From a207a2835e37de52e11d4c143c0425e749409c46 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 24 Jan 2003 04:25:53 +0000 Subject: [PATCH] 1424. [bug] EDNS version not being correctly printed. --- CHANGES | 2 ++ lib/dns/message.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index d99f14c3bc..cc2a9d859e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1424. [bug] EDNS version not being correctly printed. + 1423. [contrib] queryperf: added A6 and SRV. 1422. [func] Log name/type/class when denying a query. [RT #4663] diff --git a/lib/dns/message.c b/lib/dns/message.c index 97fe4ce967..dfaa505d18 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.215 2002/11/27 09:52:54 marka Exp $ */ +/* $Id: message.c,v 1.216 2003/01/24 04:25:53 marka Exp $ */ /*** *** Imports @@ -2966,8 +2966,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg, ADD_STRING(target, ";; OPT PSEUDOSECTION:\n"); ADD_STRING(target, "; EDNS: version: "); snprintf(buf, sizeof(buf), "%u", - (unsigned int)((ps->ttl & - 0x00ff0000 >> 16))); + (unsigned int)((ps->ttl & 0x00ff0000) >> 16)); ADD_STRING(target, buf); ADD_STRING(target, ", flags:"); if ((ps->ttl & DNS_MESSAGEEXTFLAG_DO) != 0)