diff options
author | Mikio Hara <mikioh.mikioh@gmail.com> | 2015-08-22 11:03:11 +0900 |
---|---|---|
committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2015-08-23 10:43:46 +0000 |
commit | c049d34006b055cabd6c0f146936ee156231ef13 (patch) | |
tree | ff9fa5a401868107a8985f07d82f159bb44b1dd2 /src/net/dnsclient_unix.go | |
parent | 8ca785621e7239b2f11ae2e02f00ef961241712f (diff) | |
download | go-c049d34006b055cabd6c0f146936ee156231ef13.tar.gz go-c049d34006b055cabd6c0f146936ee156231ef13.zip |
net: drop redundant domain name length check
It is already validated by isDoaminName.
Change-Id: I7a955b632a5143e16b012641cf12bad452900753
Reviewed-on: https://go-review.googlesource.com/13789
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/net/dnsclient_unix.go')
-rw-r--r-- | src/net/dnsclient_unix.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/net/dnsclient_unix.go b/src/net/dnsclient_unix.go index c03c1b1159..1fbe085bbf 100644 --- a/src/net/dnsclient_unix.go +++ b/src/net/dnsclient_unix.go @@ -165,9 +165,6 @@ func tryOneName(cfg *dnsConfig, name string, qtype uint16) (string, []dnsRR, err if len(cfg.servers) == 0 { return "", nil, &DNSError{Err: "no DNS servers", Name: name} } - if len(name) >= 256 { - return "", nil, &DNSError{Err: "DNS name too long", Name: name} - } timeout := time.Duration(cfg.timeout) * time.Second var lastErr error for i := 0; i < cfg.attempts; i++ { |