1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli
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
..
auth libcli/auth: let NTLMv2_RESPONSE_verify_netlogon_creds ignore invalid netapp requests 2022-01-04 20:07:28 +00:00
cldap CVE-2020-10704: libcli ldap_message: Add search size limits to ldap_decode 2020-05-04 02:59:32 +00:00
dns libcli/dns: Fix TCP fallback 2022-01-20 18:01:41 +00:00
drsuapi tests: Fix "-Werror=maybe-uninitialized" errors only seen with -O3 and --enable-coverage 2021-04-28 03:43:34 +00:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
http http_conn.c: fix "void function cannot return value" error 2020-11-10 06:53:42 +00:00
ldap libcli: Use GUID_to_ndr_buf() in ldap_encode_ndr_GUID() 2020-10-02 21:30:33 +00:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth lib: Remove unused tstream_npa_socketpair() 2022-01-18 20:22:38 +00:00
nbt nmblookup: don't ignore unknown options 2021-09-10 15:10:30 +00:00
netlogon CVE-2020-25717: Add FreeIPA domain controller role 2021-11-09 19:45:33 +00:00
registry
samsync smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
security libcli: Simplify get_sec_mask_str() 2021-10-08 19:28:32 +00:00
smb libcli/smb: split out smb2cli_raw_tcon* from smb2cli_tcon* 2021-12-01 11:04:29 +00:00
smbreadline libcli:smbreadline: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
util libcli: Remove NT_STATUS_INACCESSIBLE_SYSTEM_SHORTCUT error code 2021-11-11 19:08:37 +00:00