summaryrefslogtreecommitdiff
path: root/librpc/wscript_build
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2020-05-15 10:52:45 +1200
committerKarolin Seeger <kseeger@samba.org>2020-06-25 10:43:52 +0200
commit3b98e807eb9879e89fffd1bbf6c5a0feaa99d121 (patch)
treeab8d628202c71dee9ef87f3cfacb215c12ea4400 /librpc/wscript_build
parent0afc9f777a609d0677bc5de83b35fb9313ea8466 (diff)
downloadsamba-3b98e807eb9879e89fffd1bbf6c5a0feaa99d121.tar.gz
CVE-2020-10745: ndr/dns-utils: prepare for NBT compatibility
NBT has a funny thing where it sometimes needs to send a trailing dot as part of the last component, because the string representation is a user name. In DNS, "example.com", and "example.com." are the same, both having three components ("example", "com", ""); in NBT, we want to treat them differently, with the second form having the three components ("example", "com.", ""). This retains the logic of e6e2ec0001fe3c010445e26cc0efddbc1f73416b. Also DNS compression cannot be turned off for NBT. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14378 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'librpc/wscript_build')
-rw-r--r--librpc/wscript_build3
1 files changed, 1 insertions, 2 deletions
diff --git a/librpc/wscript_build b/librpc/wscript_build
index 3b4599f3211..30763907aaa 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -415,7 +415,7 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT',
bld.SAMBA_LIBRARY('ndr_nbt',
source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
- public_deps='ndr NDR_NBT_BUF NDR_SECURITY',
+ public_deps='ndr NDR_NBT_BUF NDR_SECURITY NDR_DNS',
public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
pc_files='ndr_nbt.pc',
@@ -705,6 +705,5 @@ bld.SAMBA_BINARY('test_ndr_dns_nbt',
cmocka
ndr
ndr_nbt
- NDR_DNS
''',
for_selftest=True)