From: Otto Moerbeek Date: Mon, 11 Jul 2022 08:21:48 +0000 (+0200) Subject: Rec: Resize answer length to actual received length in udpQueryResponse X-Git-Tag: auth-4.8.0-alpha0~16^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbb5ac45a90e4109ff1f8536bf5d99aafd62ef0c;p=thirdparty%2Fpdns.git Rec: Resize answer length to actual received length in udpQueryResponse Fixes #11771 --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index ad3b263049..1f9d62aad8 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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 {