Fixup alloc in wrong region.

git-svn-id: file:///svn/unbound/trunk@628 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-09-21 13:34:44 +00:00
parent db695709e6
commit a81e19a6eb
4 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,6 @@
21 September 2007: Wouter
- fixup empty_DS_name allocated in wrong region.
20 September 2007: Wouter
- fixup and test for NSEC wildcard with empty nonterminals.
- makedist.sh fixup for svn info.

View file

@ -52,3 +52,4 @@ o grab ports nonconsequtive and change the set after a while (change within
o workaround for nxdomain responses for ENT DS queries. Not look at rcode and
look at valid empty nonterminal proof that is inside the packet.
o make timeout backoffs randomized (a couple percent random) to spread traffic.
o inspect date on executable, then warn user in log if its more than 1 year.

View file

@ -178,6 +178,8 @@ Styleguide:
if phase 1, start servicing, phase is 0 again. Make robust against delays.
readme: max about 1 second worth of incoming queries, 10k perhaps,
or 1/number of seconds it takes start up of 10k.
* should the source include a copy of the ldns lib for ease of building by
new users.
*** Local zones feature.
* Build in local zone features. First the total stop for1912.

View file

@ -1789,7 +1789,14 @@ process_ds_response(struct module_qstate* qstate, struct val_qstate* vq,
return;
}
if(dske == NULL) {
vq->empty_DS_name = qinfo->qname;
vq->empty_DS_name = region_alloc_init(qstate->region,
qinfo->qname, qinfo->qname_len);
if(!vq->empty_DS_name) {
log_err("malloc failure in empty_DS_name");
vq->key_entry = NULL; /* make it error */
vq->state = VAL_VALIDATE_STATE;
return;
}
vq->empty_DS_len = qinfo->qname_len;
/* ds response indicated that we aren't on a delegation point.
* Keep the forState.state on FINDKEY. */