mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
misplaced cast could cause EDNS extended RCODE bits to be lost [RT #1483]
This commit is contained in:
parent
aba6851825
commit
3d4d93c35b
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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
|
*** Imports
|
||||||
@ -1440,8 +1440,8 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
|
|||||||
rdataset = NULL;
|
rdataset = NULL;
|
||||||
free_rdataset = ISC_FALSE;
|
free_rdataset = ISC_FALSE;
|
||||||
ercode = (dns_rcode_t)
|
ercode = (dns_rcode_t)
|
||||||
(msg->opt->ttl & DNS_MESSAGE_EDNSRCODE_MASK)
|
((msg->opt->ttl & DNS_MESSAGE_EDNSRCODE_MASK)
|
||||||
>> 20;
|
>> 20);
|
||||||
msg->rcode |= ercode;
|
msg->rcode |= ercode;
|
||||||
isc_mempool_put(msg->namepool, name);
|
isc_mempool_put(msg->namepool, name);
|
||||||
free_name = ISC_FALSE;
|
free_name = ISC_FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user