mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:32:09 -04:00
Also disallow creation of TYPE0 records from wire data
This commit is contained in:
parent
de5247ae16
commit
6bebabb376
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.151 2001/10/02 23:33:04 gson Exp $ */
|
||||
/* $Id: rdata.c,v 1.152 2001/10/03 00:51:38 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
|
|
@ -504,6 +504,9 @@ dns_rdata_fromwire(dns_rdata_t *rdata, dns_rdataclass_t rdclass,
|
|||
REQUIRE(DNS_RDATA_VALIDFLAGS(rdata));
|
||||
}
|
||||
|
||||
if (type == 0)
|
||||
return (DNS_R_FORMERR);
|
||||
|
||||
ss = *source;
|
||||
st = *target;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue