diff options
author | Jeremy Allison <jra@samba.org> | 2011-01-26 08:43:43 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-26 18:32:15 +0100 |
commit | bb358ecd5aade909b892f002d498d4cb7b23789a (patch) | |
tree | ce68dfeb1dcb2c479de04ac26e3edf8dc4769440 /source3/libsmb | |
parent | abb7c07de5d07d5378dafbfdf0d0213a2b0e0b05 (diff) | |
download | samba-bb358ecd5aade909b892f002d498d4cb7b23789a.tar.gz samba-bb358ecd5aade909b892f002d498d4cb7b23789a.tar.bz2 samba-bb358ecd5aade909b892f002d498d4cb7b23789a.zip |
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smb_share_modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index 9392349b10..fd5f0ea227 100644 --- a/source3/libsmb/smb_share_modes.c +++ b/source3/libsmb/smb_share_modes.c @@ -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; |