]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Rec: Resize answer length to actual received length in udpQueryResponse
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)
Fixes #11771

pdns/pdns_recursor.cc

index ad3b2630491e373b1ba2527f6bcd556bc6122dd9..1f9d62aad8807a7a01c72fe7edd1403e22153f49 100644 (file)
@@ -215,6 +215,7 @@ static void handleGenUDPQueryResponse(int fd, FDMultiplexer::funcparam_t& var)
 
   t_fdm->removeReadFD(fd);
   if (ret >= 0) {
+    resp.resize(ret);
     MT->sendEvent(pident, &resp);
   }
   else {