]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disallow creation of TYPE0 records from master files, since the server
authorMark Andrews <marka@isc.org>
Wed, 3 Oct 2001 02:05:25 +0000 (02:05 +0000)
committerMark Andrews <marka@isc.org>
Wed, 3 Oct 2001 02:05:25 +0000 (02:05 +0000)
reserves type 0 for internal purposes related to negative caching

lib/dns/rdata.c

index 56d2b0fd32e234f95b521ff123ca4defe5ddbf2f..8fbc06feae9a258707d860e1593c2aa4543202bb 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: rdata.c,v 1.147.2.1 2001/09/21 20:46:35 gson Exp $ */
+/* $Id: rdata.c,v 1.147.2.2 2001/10/03 02:05:25 marka Exp $ */
 
 #include <config.h>
 #include <ctype.h>
@@ -611,7 +611,7 @@ unknown_fromtext(dns_rdataclass_t rdclass, dns_rdatatype_t type,
        isc_buffer_t *buf = NULL;
        isc_token_t token;
 
-       if (dns_rdatatype_ismeta(type))
+       if (type == 0 || dns_rdatatype_ismeta(type))
                return (DNS_R_METATYPE);
 
        result = isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,