From: Ruben d'Arco Date: Mon, 22 Jul 2013 20:23:25 +0000 (+0200) Subject: Fix truncating bug X-Git-Tag: auth-3.3.1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e655f1149b0385c3571cc55ed63ed5480c5f7640;p=thirdparty%2Fpdns.git Fix truncating bug --- diff --git a/pdns/dynmessenger.cc b/pdns/dynmessenger.cc index 7200e279a5..ce3923356e 100644 --- a/pdns/dynmessenger.cc +++ b/pdns/dynmessenger.cc @@ -116,7 +116,7 @@ string DynMessenger::receive() const throw AhuException("Error from remote: "+string(strerror(errno))); answer.append(buffer,retlen); - if(retlen!=sizeof(buffer)) + if (retlen == 0) break; }