]> granicus.if.org Git - pdns/commitdiff
Fix truncating bug
authorRuben d'Arco <cyclops@prof-x.net>
Mon, 22 Jul 2013 20:23:25 +0000 (22:23 +0200)
committerRuben d'Arco <cyclops@prof-x.net>
Mon, 22 Jul 2013 20:23:25 +0000 (22:23 +0200)
pdns/dynmessenger.cc

index d11d44995665e5109da93599504ebd8e6a6bf192..eced8f229b3688d957249577e42f35e875908bb2 100644 (file)
@@ -116,7 +116,7 @@ string DynMessenger::receive() const
       throw PDNSException("Error from remote: "+string(strerror(errno)));
 
     answer.append(buffer,retlen);
-    if(retlen!=sizeof(buffer))
+    if (retlen == 0)
       break;
   }