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 <[email protected]>
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 <[email protected]>
    Reviewed-by: Jeremy Allison <[email protected]>
    
    Autobuild-User(master): Jeremy Allison <[email protected]>
    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

Reply via email to