]> granicus.if.org Git - pdns/commitdiff
Use different source ports for subsequent questions, quick and dirty fix for
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 31 Aug 2004 20:35:18 +0000 (20:35 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 31 Aug 2004 20:35:18 +0000 (20:35 +0000)
bug #2

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@246 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/resolver.cc

index 1af320674bbf96213557d675f1d8a17d41e48e0b..3917b3097fce87521afc6aed4e3737104a42c7b9 100644 (file)
@@ -44,6 +44,7 @@ void Resolver::makeUDPSocket()
 void Resolver::makeSocket(int type)
 {
   static u_int16_t port_counter=5000;
+  port_counter++; // this makes us use a new port for each query, fixes ticket #2
   if(d_sock>0)
     return;