]> git.ipfire.org Git - thirdparty/samba.git/commit
s3-util: Compare the maximum allowed length of a NetBIOS name
authorRoel van Meer <roel@1afa.com>
Tue, 4 Aug 2015 14:50:43 +0000 (16:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Aug 2015 10:33:42 +0000 (12:33 +0200)
commit08bbbbc87f7dd2b9f09b85ca7e361046095d2fb5
tree9a1f05a259ef8ceef42d183809999adb4cd11517
parentf2a2ac4bd9621d2d11e0945fad6143aeaa92536f
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>
(cherry picked from commit 4e178ed498c594ffcd5592d0b792d47b064b9586)

Autobuild-User(v4-2-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-2-test): Mon Aug 31 12:33:42 CEST 2015 on sn-devel-104
source3/lib/util.c