From: Jeremy Allison Date: Wed, 26 Jan 2011 16:43:43 +0000 (-0800) Subject: From Metze - make sure we're using the same string length for the hash. X-Git-Tag: tevent-0.9.11~1238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb358ecd5aade909b892f002d498d4cb7b23789a;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index 9392349b101..fd5f0ea2271 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;