mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-01 04:19:36 -05:00
descript can have NULL _name for unknown types (even though only A, AAAA at this point), but the type_buf() routine works all the time.
git-svn-id: file:///svn/unbound/trunk@4166 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
903fe8db7e
commit
e1b6145e5c
1 changed files with 8 additions and 2 deletions
|
|
@ -296,8 +296,11 @@ ipsecmod_handle_query(struct module_qstate* qstate,
|
|||
if(!iq->ipseckey_done) {
|
||||
if(qstate->qinfo.qtype == LDNS_RR_TYPE_A ||
|
||||
qstate->qinfo.qtype == LDNS_RR_TYPE_AAAA) {
|
||||
char type[16];
|
||||
sldns_wire2str_type_buf(qstate->qinfo.qtype, type,
|
||||
sizeof(type));
|
||||
verbose(VERB_ALGO, "ipsecmod: query for %s; engaging",
|
||||
sldns_rr_descript(qstate->qinfo.qtype)->_name);
|
||||
type);
|
||||
qstate->no_cache_store = 1;
|
||||
}
|
||||
/* Pass request to next module. */
|
||||
|
|
@ -377,8 +380,11 @@ ipsecmod_handle_response(struct module_qstate* qstate,
|
|||
qstate->return_msg->rep) &&
|
||||
/* check that another module didn't SERVFAIL. */
|
||||
qstate->return_rcode != LDNS_RCODE_SERVFAIL) {
|
||||
char type[16];
|
||||
sldns_wire2str_type_buf(qstate->qinfo.qtype, type,
|
||||
sizeof(type));
|
||||
verbose(VERB_ALGO, "ipsecmod: response for %s; generating IPSECKEY "
|
||||
"subquery", sldns_rr_descript(qstate->qinfo.qtype)->_name);
|
||||
"subquery", type);
|
||||
/* generate an IPSECKEY query. */
|
||||
if(!generate_request(qstate, id, qstate->qinfo.qname,
|
||||
qstate->qinfo.qname_len, LDNS_RR_TYPE_IPSECKEY,
|
||||
|
|
|
|||
Loading…
Reference in a new issue