s3-util: Fix authentication with long hostnames.
commit2baeba404c3d18d032860503385f174c269fc991
authorAndreas Schneider <asn@samba.org>
Mon, 12 Jan 2015 17:12:13 +0000 (12 18:12 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 14 Jan 2015 20:28:13 +0000 (14 21:28 +0100)
treee4c58d2b5f309894686a09257df3bccb737ef3cf
parent9f52de75088380915835e815217bdcd0afa8dc85
s3-util: Fix authentication with long hostnames.

If the hostname is longer than MAX_NETBIOSNAME_LEN we fail to correctly
check the hostname.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11008

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit da2611adef32107f5a0eec97501c01232ab72efc)
Signed-off-by: Andreas Schneider <asn@samba.org>
source3/lib/util.c