Show
Ignore:
Timestamp:
08/11/07 15:52:53 (6 years ago)
Author:
ahu
Message:

potential fix for cname/wildcard issue

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/packethandler.cc

    r1079 r1081  
    399399      } 
    400400    } 
    401     if(hits && !found && !rfound && shortcut ) // we found matching qnames but not a qtype 
     401    if(hits && !found && !rfound && shortcut ) { // we found matching qnames but not a qtype 
     402      DLOG(L<<"Found matching qname, but not the qtype"<<endl); 
    402403      return 2; 
     404    } 
    403405 
    404406    if(rfound) 
     
    654656 
    655657    if(mret==2) { // there is some data, but not of the correct type 
     658      r->clearRecords(); 
    656659      DLOG(L<<"There is some data, but not of the correct type, adding SOA for NXRECORDSET"<<endl); 
    657660      SOAData sd; 
     
    696699      } 
    697700    } 
    698  
    699701    noSameLevelNS=true; 
    700702 
     
    739741    // not found yet, try wildcards (we only try here in case of recursion - we should check before we hand off) 
    740742 
    741     if(p->d.rd && d_doRecursion && d_doWildcards) {  
     743    if(mret != 2 && p->d.rd && d_doRecursion && d_doWildcards) {  
    742744      int res=doWildcardRecords(p,r,target); 
    743745      if(res) { // had a result