diff options
author | Volker Lendecke <vl@samba.org> | 2018-05-08 08:35:18 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-05-08 10:03:16 +0200 |
commit | df16777ce4e3d2221b9215c523aa7d63e516db5f (patch) | |
tree | 63c2f66fc22eabc2778432a412ee636b864bae85 /source4/dsdb/samdb/ldb_modules/schema_load.c | |
parent | 2073635d5818aa3fc844ee40dde0c8ae42ac5abd (diff) | |
download | samba-df16777ce4e3d2221b9215c523aa7d63e516db5f.tar.gz |
dsdb: Fix CID 1435453 Null pointer dereferences
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/schema_load.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_load.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index fd19d105162..6a3001d05e4 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -82,6 +82,10 @@ static int schema_metadata_open(struct ldb_module *module) filename = ldb_relative_path(ldb, tmp_ctx, "sam.ldb.d/metadata.tdb"); + if (filename == NULL) { + talloc_free(tmp_ctx); + return ldb_module_oom(module); + } open_flags = O_RDWR; if (stat(filename, &statbuf) != 0) { |