Changeset 1640
- Timestamp:
- 06/18/10 20:57:02 (3 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r1637 r1640 595 595 // no need to remove us from FDM, we weren't there 596 596 TCPConnection::closeAndCleanup(dc->d_socket, dc->d_remote); 597 dc->d_socket = -1; 597 598 } 598 599 else { … … 632 633 633 634 delete dc; 635 dc=0; 634 636 } 635 637 catch(AhuException &ae) { 636 638 L<<Logger::Error<<"startDoResolve problem: "<<ae.reason<<endl; 639 if(dc && dc->d_tcp && dc->d_socket >= 0) 640 TCPConnection::closeAndCleanup(dc->d_socket, dc->d_remote); 641 delete dc; 637 642 } 638 643 catch(MOADNSException& e) { 644 if(dc && dc->d_tcp && dc->d_socket >= 0) 645 TCPConnection::closeAndCleanup(dc->d_socket, dc->d_remote); 646 639 647 L<<Logger::Error<<"DNS parser error: "<<dc->d_mdp.d_qname<<", "<<e.what()<<endl; 648 delete dc; 640 649 } 641 650 catch(std::exception& e) { 642 651 L<<Logger::Error<<"STL error: "<<e.what()<<endl; 652 if(dc && dc->d_tcp && dc->d_socket >= 0) 653 TCPConnection::closeAndCleanup(dc->d_socket, dc->d_remote); 654 delete dc; 643 655 } 644 656 catch(...) { … … 1524 1536 vector<string> ips; 1525 1537 stringtok(ips, ::arg()["allow-from"], ", "); 1538 1526 1539 L<<Logger::Warning<<"Only allowing queries from: "; 1527 1540 for(vector<string>::const_iterator i = ips.begin(); i!= ips.end(); ++i) { … … 1593 1606 ips.push_back("0.0.0.0"); 1594 1607 ips.push_back("::"); 1608 1595 1609 L<<Logger::Warning<<"Will not send queries to: "; 1596 1610 for(vector<string>::const_iterator i = ips.begin(); i!= ips.end(); ++i) {