~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to pdns/communicator.cc

  • Committer: Bazaar Package Importer
  • Author(s): Debian PowerDNS Maintainers
  • Date: 2005-07-29 20:24:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050729202433-cfrk71byx0mmmbk6
Tags: 2.9.18-1
* New upstream release (Closes: #318798)
* Drop patches: 64bit-compile-fix.dpatch, addfeatures-ldapbackend.dpatch,
  amd64-compilefix.dpatch, blankout-domain-fix.dpatch,
  consistent-sql.dpatch, dosfix-ldapbackend.dpatch, fix-exit-status.dpatch,
  gpgsql-compilefix.dpatch, gsqlite-compilefix.dpatch, gsqlite-slave.dpatch,
  recursor-slowdown.patch.dpatch, typoinitscript.dpatch, zone2ldap.dpatch
  They are applied upstream.
* The ldapbackend did not properly escape all queries, allowing it to fail
  and not answer questions. (CAN-2005-2301)
* Questions from clients denied recursion could blank out answers to clients
  who are allowed recursion services, temporarily. (CAN-2005-2302)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    PowerDNS Versatile Database Driven Nameserver
3
 
    Copyright (C) 2002  PowerDNS.COM BV
 
3
    Copyright (C) 2002-2005  PowerDNS.COM BV
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
 
    it under the terms of the GNU General Public License as published by
7
 
    the Free Software Foundation; either version 2 of the License, or
8
 
    (at your option) any later version.
 
6
    it under the terms of the GNU General Public License version 2 as 
 
7
    published by the Free Software Foundation; 
9
8
 
10
9
    This program is distributed in the hope that it will be useful,
11
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
30
29
#include "dns.hh"
31
30
#include "arguments.hh"
32
31
#include "session.hh"
33
 
 
 
32
#include "packetcache.hh"
34
33
 
35
34
void CommunicatorClass::addSuckRequest(const string &domain, const string &master, bool priority)
36
35
{
216
215
  // do this via the FindNS class, d_fns
217
216
  
218
217
  for(vector<DomainInfo>::const_iterator i=cmdomains.begin();i!=cmdomains.end();++i) {
219
 
 
 
218
    extern PacketCache PC;
 
219
    PC.purge(i->zone); // fixes cvstrac ticket #30
220
220
    queueNotifyDomain(i->zone,P->getBackend());
221
221
    i->backend->setNotified(i->id,i->serial); 
222
222
  }
240
240
      (sdomains.size()>1 ? "" : "s")<<
241
241
      " checking"<<endl;
242
242
 
243
 
  Resolver resolver;
244
 
  resolver.makeUDPSocket();
245
243
  for(vector<DomainInfo>::const_iterator i=sdomains.begin();i!=sdomains.end();++i) {
 
244
    Resolver resolver;   
 
245
    resolver.makeUDPSocket();  
246
246
    d_slaveschanged=true;
247
247
    u_int32_t ourserial=i->serial,theirserial=0;
248
248