summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb_share_modes.c2
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;