s3-util: Fix authentication with long hostnames.
commitbdc182f4a363a60f700b2f9dbbf14be3e5e0fec7
authorAndreas Schneider <asn@samba.org>
Mon, 12 Jan 2015 17:12:13 +0000 (12 18:12 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 15 Jan 2015 12:55:08 +0000 (15 13:55 +0100)
treec001aa1f87648c6c7f57d82ba0968c45c26ede72
parentd196b54b941fdef76660c5683d4619b7a51ff779
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