[SCM] Samba Shared Repository - branch master updated
Jeremy Allison
jra at samba.org
Mon Jan 12 15:11:03 MST 2015
The branch, master has been updated
via da2611a s3-util: Fix authentication with long hostnames.
from 8365318 leases_db: don't leak lock_path onto talloc tos
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit da2611adef32107f5a0eec97501c01232ab72efc
Author: Andreas Schneider <asn at samba.org>
Date: Mon Jan 12 18:12:13 2015 +0100
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 at samba.org>
Reviewed-by: Jeremy Allison <jra at samba.org>
Autobuild-User(master): Jeremy Allison <jra at samba.org>
Autobuild-Date(master): Mon Jan 12 23:10:30 CET 2015 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source3/lib/util.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/util.c b/source3/lib/util.c
index b64b32b..e53953b 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1197,7 +1197,9 @@ bool is_myname(const char *s)
bool ret = False;
for (n=0; my_netbios_names(n); n++) {
- if (strequal(my_netbios_names(n), s)) {
+ const char *nbt_name = my_netbios_names(n);
+
+ if (strncasecmp_m(nbt_name, s, strlen(nbt_name)) == 0) {
ret=True;
break;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list