mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
Don't allow queries of class or type ANY.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: getrrset.c,v 1.3 2000/11/28 01:50:46 gson Exp $ */
|
/* $Id: getrrset.c,v 1.4 2000/12/13 00:22:54 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -87,6 +87,14 @@ lwres_getrrsetbyname(const char *hostname, unsigned int rdclass,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Don't allow queries of class or type ANY
|
||||||
|
*/
|
||||||
|
if (rdclass == 0xff || rdtype == 0xff) {
|
||||||
|
result = ERRSET_INVAL;
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
lwresult = lwres_context_create(&lwrctx, NULL, NULL, NULL, 0);
|
lwresult = lwres_context_create(&lwrctx, NULL, NULL, NULL, 0);
|
||||||
if (lwresult != LWRES_R_SUCCESS) {
|
if (lwresult != LWRES_R_SUCCESS) {
|
||||||
result = lwresult_to_result(lwresult);
|
result = lwresult_to_result(lwresult);
|
||||||
|
Reference in New Issue
Block a user