Browse Source

Bring again fix lost in merge

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/vorner-recursor-timeouts@3608 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
557ba17c6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/asiolink/asiolink.cc

+ 2 - 2
src/lib/asiolink/asiolink.cc

@@ -303,7 +303,7 @@ class RunningQuery : public UDPQuery::Callback {
              *     it is destroyed too soon. But who deletes it now?
              */
             // Server to notify when we succeed or fail
-            DNSServer* server_;
+            shared_ptr<DNSServer> server_;
             /*
              * TODO Do something more clever with timeouts. In the long term, some
              *     computation of average RTT, increase with each retry, etc.
@@ -331,7 +331,7 @@ class RunningQuery : public UDPQuery::Callback {
                 question_(question),
                 upstream_(upstream),
                 buffer_(buffer),
-                server_(server),
+                server_(server->clone()),
                 timeout_(timeout),
                 retries_(retries)
             {