]> git.ipfire.org Git - thirdparty/squid.git/commit
Make DNS report failure on all packet construction errors
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Mar 2011 06:00:08 +0000 (23:00 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Mar 2011 06:00:08 +0000 (23:00 -0700)
commitc4a7fa296b17c7bd0dd10c9b1a0954305fb161c3
tree5a05fd27f1f6c455e168b0503795c80524688d5f
parentc057c49e353f1878cacc10a46dd9306f7d8c7cf8
Make DNS report failure on all packet construction errors

The attached patch alters the DNS lookup behaviour to abort with an error
in ALL cases where the rfc1035 library generates an error (negative result).

I'm not sure there is any noticable effect other than better code. The
error case *should* in old code be picked up on the initial packet
construction rather than the repeat packet. This may have been incorrect
given that the packet type is changing between A/AAAA.
src/dns_internal.cc