]> granicus.if.org Git - pdns/commitdiff
ws-recursor: remove data.clear() which is also done by arecvtcp
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Mon, 26 Jun 2017 13:53:59 +0000 (15:53 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 26 Jun 2017 16:11:47 +0000 (18:11 +0200)
pdns/ws-recursor.cc

index 391cefc3708c9ecbf979385e5940b0f04eb77e5e..e45d65e6bb5872064bc63c558725e0c1b04e7cba 100644 (file)
@@ -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);