TODO listing, comment fix

git-svn-id: file:///svn/unbound/trunk@264 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-04-27 09:37:38 +00:00
parent 856c9fa1a3
commit 379d94c4b2
2 changed files with 3 additions and 2 deletions

View file

@ -11,4 +11,5 @@ o possible optimization, so that precious id number resource is not depleted
by parsing of messages. Delay malloc, as above, or try to reverse release
special id numbers, and if you release the next_id number for the thread
it reuses that id number.
o calculate rdata size during parse step, instead of delay until copy.
o use rbtree to compress domain names in messages, sorted AXFRs of 16Kb
and so on. This may be faster for that case.

View file

@ -612,7 +612,7 @@ compress_tree_insert(struct compress_tree_node** tree, uint8_t* dname,
while(p) {
c = dname_lab_cmp(dname, labs, p->dname, p->labs, &m);
log_assert(c != 0); /* may not already be in tree */
if(c==0) return p;
if(c==0) return p; /* insert only once */
if(c<0) {
prev = &p->left;
p = p->left;