mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-01 14:14:58 +02:00
parse sldns_get_rr_class_by_name and sldns_get_rr_type_by_name return value 0
This commit is contained in:
@@ -229,6 +229,10 @@ make_query(char* qname, char* qtype, char* qclass)
|
||||
|
||||
qinfo.qtype = sldns_get_rr_type_by_name(qtype);
|
||||
qinfo.qclass = sldns_get_rr_class_by_name(qclass);
|
||||
if((qinfo.qtype == 0 && strcmp(qtype, "TYPE0") != 0) ||
|
||||
(qinfo.qclass == 0 && strcmp(qclass, "CLASS0") != 0)) {
|
||||
return 0;
|
||||
}
|
||||
qinfo.local_alias = NULL;
|
||||
|
||||
qinfo_query_encode(buf, &qinfo); /* flips buffer */
|
||||
|
||||
Reference in New Issue
Block a user