diff options
author | Simo Sorce <idra@samba.org> | 2006-02-01 20:48:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:43 -0500 |
commit | 4b5c0493e2276a9eba1bada7c4bac99999a465e2 (patch) | |
tree | b06cc66483a25b3cde214c8c0d0ae54d2c07c092 /source/lib/ldb/ldb_tdb/ldb_search.c | |
parent | a37d9434d1fa181fd3d060ad032ee4ec5135fc52 (diff) | |
download | samba-4b5c0493e2276a9eba1bada7c4bac99999a465e2.tar.gz |
r13289: Check the tree is not NULL
Thanks to Aaron J. Seigo <aseigo@kde.org> for spotting this
Diffstat (limited to 'source/lib/ldb/ldb_tdb/ldb_search.c')
-rw-r--r-- | source/lib/ldb/ldb_tdb/ldb_search.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/ldb/ldb_tdb/ldb_search.c b/source/lib/ldb/ldb_tdb/ldb_search.c index ebbc1a39749..e43125d5883 100644 --- a/source/lib/ldb/ldb_tdb/ldb_search.c +++ b/source/lib/ldb/ldb_tdb/ldb_search.c @@ -473,6 +473,10 @@ int ltdb_search_bytree(struct ldb_module *module, const struct ldb_dn *base, return -1; } + if (tree == NULL) { + return -1; + } + *res = NULL; ret = ltdb_search_indexed(module, base, scope, tree, attrs, res); |