Show
Ignore:
Timestamp:
06/21/03 11:59:08 (10 years ago)
Author:
ahu
Message:

lots of changes, mostly a crash fix

Files:
1 modified

Legend:

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

    r172 r174  
    155155 
    156156  if (p->qclass == 3 && p->qtype.getName() == "HINFO") { 
    157     rr.content = "PowerDNS $Id: packethandler.cc,v 1.15 2003/05/24 16:02:47 ahu Exp $"; 
     157    rr.content = "PowerDNS $Id: packethandler.cc,v 1.16 2003/06/21 09:59:08 ahu Exp $"; 
    158158    rr.ttl = 5; 
    159159    rr.qname=target; 
     
    171171  DNSResourceRecord rr; 
    172172  if(p->qtype.getCode()==QType::TXT && target=="version.bind") {// TXT 
    173     rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.15 2003/05/24 16:02:47 ahu Exp $"; 
     173    rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.16 2003/06/21 09:59:08 ahu Exp $"; 
    174174    rr.ttl=5; 
    175175    rr.qname=target; 
     
    496496  u_int32_t theirserial=0; 
    497497 
     498  /* to quote Rusty Russell - this code is so bad that you can actually hear it suck */ 
     499  /* this is an instant DoS, just spoof notifications from the address of the master and we block  */ 
     500 
    498501  Resolver resolver; 
    499502  int res=resolver.getSoaSerial(p->getRemote(),p->qdomain, &theirserial); 
     
    513516      theirserial<<" > "<<di.serial<<endl; 
    514517 
    515     Communicator.addSuckRequest(p->qdomain, p->getRemote()); 
     518    Communicator.addSuckRequest(p->qdomain, p->getRemote(),true); // priority 
    516519  } 
    517520  return -1;