From bb358ecd5aade909b892f002d498d4cb7b23789a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 Jan 2011 08:43:43 -0800 Subject: From Metze - make sure we're using the same string length for the hash. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Jan 26 18:32:15 CET 2011 on sn-devel-104 --- source3/libsmb/smb_share_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') 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; -- cgit