From 3d4d93c35b5992bd5c32eb913d258be72f88adf5 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 10 Jul 2001 20:09:24 +0000 Subject: [PATCH] misplaced cast could cause EDNS extended RCODE bits to be lost [RT #1483] --- lib/dns/message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 4b549debe7..7bde77e491 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.193 2001/06/28 21:21:39 gson Exp $ */ +/* $Id: message.c,v 1.194 2001/07/10 20:09:24 gson Exp $ */ /*** *** Imports @@ -1440,8 +1440,8 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx, rdataset = NULL; free_rdataset = ISC_FALSE; ercode = (dns_rcode_t) - (msg->opt->ttl & DNS_MESSAGE_EDNSRCODE_MASK) - >> 20; + ((msg->opt->ttl & DNS_MESSAGE_EDNSRCODE_MASK) + >> 20); msg->rcode |= ercode; isc_mempool_put(msg->namepool, name); free_name = ISC_FALSE;