diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-08-03 15:12:51 +1200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2017-08-15 08:07:10 +0200 |
commit | 34acf5a99214639e5e7792a9e85d24c9fd7640ac (patch) | |
tree | 5426466e09a1e3d7f32c1b0a5b0adedf1bb05e00 /librpc | |
parent | 1184770a76800897d59f1c20adaee3b0240697de (diff) | |
download | samba-34acf5a99214639e5e7792a9e85d24c9fd7640ac.tar.gz |
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
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/idl/dns.idl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl index aebb106b053..8e8eed5ab23 100644 --- a/librpc/idl/dns.idl +++ b/librpc/idl/dns.idl @@ -18,6 +18,9 @@ import "misc.idl", "dnsp.idl"; interface dns { const int DNS_SERVICE_PORT = 53; + const int DNS_MAX_LABELS = 127; + const int DNS_MAX_DOMAIN_LENGTH = 253; + const int DNS_MAX_LABEL_LENGTH = 63; typedef [public,bitmap16bit] bitmap { DNS_RCODE = 0x000F, |