[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Tue Apr 10 05:21:04 MDT 2012
The branch, master has been updated
via 3cca094 s3: Use talloc_get_size instead of strlen
from e17d12c ldb-tools: Place the whole of an ldif file in a transaction
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 3cca094514fa4488b4ea2a6747b51443ff02a4f0
Author: Volker Lendecke <vl at samba.org>
Date: Sat Apr 7 14:17:25 2012 +0200
s3: Use talloc_get_size instead of strlen
We've just talloc_asprintf'ed the fullpath, so talloc_get_size knows the
strlen.
Autobuild-User: Volker Lendecke <vl at samba.org>
Autobuild-Date: Tue Apr 10 13:20:22 CEST 2012 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/files.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index e01a92e..c71e864 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -612,7 +612,7 @@ NTSTATUS file_name_hash(connection_struct *conn,
if (!fullpath) {
return NT_STATUS_NO_MEMORY;
}
- *p_name_hash = hash(fullpath, strlen(fullpath) + 1, 0);
+ *p_name_hash = hash(fullpath, talloc_get_size(fullpath), 0);
DEBUG(10,("file_name_hash: %s hash 0x%x\n",
fullpath,
--
Samba Shared Repository
More information about the samba-cvs
mailing list