s3-util: Compare the maximum allowed length of a NetBIOS name
commit4e178ed498c594ffcd5592d0b792d47b064b9586
authorRoel van Meer <roel@1afa.com>
Tue, 4 Aug 2015 14:50:43 +0000 (4 16:50 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 25 Aug 2015 16:43:14 +0000 (25 18:43 +0200)
tree562eb73db185348a67d8b1a694b1435a89f5d68a
parentdcc657a2219498beac8bde6cbf999ee7cf6acae8
s3-util: Compare the maximum allowed length of a NetBIOS name

This fixes a problem where is_myname() returns true if one of our names
is a substring of the specified name.

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

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/util.c