From: Christian Hofstaedtler Date: Tue, 1 Apr 2014 10:02:12 +0000 (+0200) Subject: API: Recursor: fix initialization of recv buffer X-Git-Tag: rec-3.6.0-rc1~107^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0b2bab04e9f0e06f51660a0e7907baae63cebb4;p=thirdparty%2Fpdns.git API: Recursor: fix initialization of recv buffer Fixes Coverity CID 1194782. --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index e62a210b49..251ea52b3f 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -579,7 +579,7 @@ void AsyncWebServer::serveConnection(Socket *client) string data; try { while(!req.complete) { - data.empty(); + data.clear(); int bytes = arecvtcp(data, 16384, client, true); if (bytes > 0) { req.complete = yarl.feed(data);