]> granicus.if.org Git - pdns/commitdiff
make sure we have enough space to receive those huge dnssec laden packets!
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Nov 2015 13:22:16 +0000 (14:22 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Nov 2015 13:22:16 +0000 (14:22 +0100)
pdns/pdns_recursor.cc

index 886a959cc48d4061be5a9f1bd5489ff1d3dbcdc4..2a65c1e27f9deaa8c9cacf318f928ccc350dda45 100644 (file)
@@ -1797,7 +1797,7 @@ void handleUDPServerResponse(int fd, FDMultiplexer::funcparam_t& var)
 {
   PacketID pid=any_cast<PacketID>(var);
   int len;
-  char data[1500];
+  char data[g_outgoingEDNSBufsize];
   ComboAddress fromaddr;
   socklen_t addrlen=sizeof(fromaddr);