[SCM] Samba Shared Repository - branch master updated
Jeremy Allison
jra at samba.org
Sat Sep 11 00:33:07 MDT 2010
The branch, master has been updated
via a89b0ef Add check missing from previous patch after talloc_strdup().
from 1787c1d Factor out the recent changes into a function - check_parent_exists(). Fix this to ensure that if "start" is manipulated, then "dirpath" is changed also.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit a89b0ef53b990721d6e897b938bed75577b623d9
Author: Jeremy Allison <jra at samba.org>
Date: Fri Sep 10 23:33:18 2010 -0700
Add check missing from previous patch after talloc_strdup().
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/filename.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 4917173..7bc8607 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -170,6 +170,9 @@ static NTSTATUS check_parent_exists(TALLOC_CTX *ctx,
/* Update dirpath. */
TALLOC_FREE(*pp_dirpath);
*pp_dirpath = talloc_strdup(ctx, parent_fname.base_name);
+ if (!*pp_dirpath) {
+ return NT_STATUS_NO_MEMORY;
+ }
DEBUG(5,("check_parent_exists: name "
"= %s, dirpath = %s, "
--
Samba Shared Repository
More information about the samba-cvs
mailing list