From: Christian Hofstaedtler Date: Mon, 26 Jun 2017 13:53:59 +0000 (+0200) Subject: ws-recursor: remove data.clear() which is also done by arecvtcp X-Git-Tag: rec-4.1.0-alpha1~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11cd056135966023ae8b5c450958bf508c92821e;p=thirdparty%2Fpdns.git ws-recursor: remove data.clear() which is also done by arecvtcp --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 391cefc370..e45d65e6bb 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -571,7 +571,6 @@ void AsyncWebServer::serveConnection(Socket *client) string data; try { while(!req.complete) { - data.clear(); int bytes = arecvtcp(data, 16384, client, true); if (bytes > 0) { req.complete = yarl.feed(data);