]> granicus.if.org Git - pdns/commitdiff
remove dead store
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 8 Sep 2013 16:33:37 +0000 (18:33 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 8 Sep 2013 16:33:37 +0000 (18:33 +0200)
pdns/nameserver.cc

index 5efebba657623154d0a2681e373ab17e758dc554..1729e9e9edacffbcc834ed1c87167c90332485d0 100644 (file)
@@ -409,8 +409,6 @@ DNSPacket *UDPNameserver::receive(DNSPacket *prefilled)
   BOOST_FOREACH(struct pollfd &pfd, rfds) {
     if(pfd.revents & POLLIN) {
       sock=pfd.fd;        
-      len=0;
-        
       if((len=recvmsg(sock, &msgh, 0)) < 0 ) {
        if(errno != EAGAIN)
          L<<Logger::Error<<"recvfrom gave error, ignoring: "<<strerror(errno)<<endl;