s3: nmbd: Ensure NetBIOS names are only 15 characters stored.
commita7085ff72d8aff64d2c01d31737a72eaa35540e6
authorJeremy Allison <jra@samba.org>
Fri, 31 Oct 2014 18:01:26 +0000 (31 11:01 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Nov 2014 19:58:12 +0000 (7 20:58 +0100)
treef4c8dfc88320c376f3950ab007225920c9a3dd78
parentce6b7c8812cf2dab3deba44b9b3e3e79d36a99e4
s3: nmbd: Ensure NetBIOS names are only 15 characters stored.

This screws up if the name is greater than MAX_NETBIOSNAME_LEN-1 in the
unix charset, but less than or equal to MAX_NETBIOSNAME_LEN-1 in the DOS
charset, but this is so old we have to live with that.

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

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