mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
From Metze - make sure we're using the same string length for the hash.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 26 18:32:15 CET 2011 on sn-devel-104
This commit is contained in:
parent
abb7c07de5
commit
bb358ecd5a
@ -277,7 +277,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int *
|
||||
return 0;
|
||||
}
|
||||
key.dptr = (uint8_t *)fullpath;
|
||||
key.dsize = strlen(fullpath);
|
||||
key.dsize = strlen(fullpath) + 1;
|
||||
name_hash = tdb_jenkins_hash(&key);
|
||||
free(fullpath);
|
||||
return name_hash;
|
||||
|
Loading…
Reference in New Issue
Block a user