mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-24 10:21:10 -05:00
Only test rendering class for != NONE/ANY in non-update messages
This commit is contained in:
parent
7b19817cb8
commit
167f530b5b
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: message.c,v 1.130 2000/06/23 02:07:58 bwelling Exp $ */
|
||||
/* $Id: message.c,v 1.131 2000/06/23 20:47:23 mws Exp $ */
|
||||
|
||||
/***
|
||||
*** Imports
|
||||
|
|
@ -1114,7 +1114,8 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
|
|||
* established a class. Do so now.
|
||||
*/
|
||||
if (msg->state == DNS_SECTION_ANY) {
|
||||
if (rdclass == 0 || rdclass == dns_rdataclass_any) {
|
||||
if ((msg->opcode != dns_opcode_update) &&
|
||||
(rdclass == 0 || rdclass == dns_rdataclass_any)) {
|
||||
result = DNS_R_FORMERR;
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue