mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-18 18:18:00 -05:00
dns_rdata_tostruct() should reject rdata with DNS_RDATA_UPDATE set
(cherry picked from commit e97249e012)
This commit is contained in:
parent
45e5972808
commit
5374630ca4
2 changed files with 2 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ dns_rdata_tostruct(const dns_rdata_t *rdata, void *target, isc_mem_t *mctx);
|
|||
*
|
||||
* Requires:
|
||||
*
|
||||
*\li 'rdata' is a valid, non-empty rdata.
|
||||
*\li 'rdata' is a valid, non-empty, non-pseudo rdata.
|
||||
*
|
||||
*\li 'target' to point to a valid pointer for the type and class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1233,6 +1233,7 @@ dns_rdata_tostruct(const dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||
|
||||
REQUIRE(rdata != NULL);
|
||||
REQUIRE(DNS_RDATA_VALIDFLAGS(rdata));
|
||||
REQUIRE((rdata->flags & DNS_RDATA_UPDATE) == 0);
|
||||
|
||||
TOSTRUCTSWITCH
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue