dnsserver: Tighten DNS name checking
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 3 Aug 2017 03:12:51 +0000 (15:12 +1200)
committerGarming Sam <garming@samba.org>
Tue, 15 Aug 2017 06:07:10 +0000 (08:07 +0200)
commit34acf5a99214639e5e7792a9e85d24c9fd7640ac
tree5426466e09a1e3d7f32c1b0a5b0adedf1bb05e00
parent1184770a76800897d59f1c20adaee3b0240697de
dnsserver: Tighten DNS name checking

Add checks for the maximum permitted length, maximum number of labels
and the maximum label length.  These extra checks will be used by the
DNS wild card handling.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952
librpc/idl/dns.idl
source4/dns_server/dnsserver_common.c