]> git.ipfire.org Git - thirdparty/pdns.git/commit
Drop truncated UDP messages caused by a small buffer. 2939/head
authorRemi Gacogne <rgacogne-github@coredump.fr>
Thu, 26 Nov 2015 14:55:04 +0000 (15:55 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Thu, 26 Nov 2015 14:55:04 +0000 (15:55 +0100)
commit43eeadc142d01b88f08aed7f6a7aba69f9dd9666
tree1ca95332a8cd770e3157e0d9129977ab293c6d93
parent37ed1b57f75f9915afae301ab90d67ebf823b181
Drop truncated UDP messages caused by a small buffer.

When we receive a message too large for our buffer, recvmsg() will
truncate the content to fit the buffer and set the MSG_TRUNC flag.
There is no point in trying to parse this message because we will
choke during the parsing anyway.
pdns/dnsdist.cc