1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/libcli/dns
Volker Lendecke f60780c8b6 libcli/dns: Fix TCP fallback
A customer has come across a DNS server that really just cuts a SRV
reply if it's too long. This makes the packet invalid according to
ndr_pull and according to wireshark. DNS_FLAG_TRUNCATION is however
set. As this seems to be legal according to the DNS RFCs, we need to
hand-parse the first two uint16's and look whether DNS_FLAG_TRUNCATION
is set.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 20 18:01:41 UTC 2022 on sn-devel-184
2022-01-20 18:01:41 +00:00
..
dns_lookup.c Fix tests when building with selftest but without developer 2019-01-25 21:57:57 +01:00
dns_lookup.h libcli/dns: Add dns_res_rec_get_sockaddr 2019-01-15 07:53:22 +01:00
dns_lookuptest.c libcli/dns: Add dns_lookup 2019-01-15 07:53:21 +01:00
dns.c libcli/dns: Fix TCP fallback 2022-01-20 18:01:41 +00:00
dns.h libcli: Add required #includes to libcli/dns/dns.h 2020-12-11 18:29:32 +00:00
libdns.h
resolvconf.c lib: Initialize variables in parse_resolvconf_fp 2019-04-09 18:29:14 +00:00
resolvconf.h libcli/dns: Add resolv.conf parsing 2019-01-15 07:53:21 +01:00
resolvconftest.c libcli/dns: Add resolv.conf parsing 2019-01-15 07:53:21 +01:00
wscript_build build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00