[SCM] Samba Shared Repository - branch master updated
Andreas Schneider
asn at samba.org
Wed Jun 16 06:32:12 MDT 2010
The branch, master has been updated
via a75feea... s3-tdb: Added missing out of memory check in rename_file_with_suffix().
from 6dbcffb... s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit a75feeaa239c35473c3d8f27b539df126beda81f
Author: Andreas Schneider <asn at samba.org>
Date: Tue Jun 15 14:25:12 2010 +0200
s3-tdb: Added missing out of memory check in rename_file_with_suffix().
-----------------------------------------------------------------------
Summary of changes:
source3/lib/tdb_validate.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c
index b4d0365..c5cb1b4 100644
--- a/source3/lib/tdb_validate.c
+++ b/source3/lib/tdb_validate.c
@@ -355,6 +355,10 @@ static int rename_file_with_suffix(TALLOC_CTX *ctx, const char *path,
char *dst_path;
dst_path = talloc_asprintf(ctx, "%s%s", path, suffix);
+ if (dst_path == NULL) {
+ DEBUG(3, ("error out of memory\n"));
+ return ret;
+ }
ret = (rename(path, dst_path) != 0);
--
Samba Shared Repository
More information about the samba-cvs
mailing list