diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-11-16 10:19:42 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-11-16 10:19:42 +1100 |
commit | 88801709781df4fc84bf4b9da12d7f1808bdd86b (patch) | |
tree | 4848b89c6fcd0c2d844f5770d558746c3c4f7cc5 /source4 | |
parent | 8e5f5e3f05f9d2cd6ef1553deacce88c2a8c4d2e (diff) | |
download | samba-88801709781df4fc84bf4b9da12d7f1808bdd86b.tar.gz samba-88801709781df4fc84bf4b9da12d7f1808bdd86b.tar.bz2 samba-88801709781df4fc84bf4b9da12d7f1808bdd86b.zip |
s4:dsdb LDB attribute lists must always be a static const char **.
(If they are not, then due to the async code, they will cause a segfault as they reference a reclaimed portion of the stack).
Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 390950bb75..bfc4cac33e 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -992,7 +992,7 @@ static int samldb_find_for_defaultObjectCategory(struct samldb_ctx *ac) struct ldb_context *ldb; struct ldb_request *req; int ret; - const char *no_attrs[] = { NULL }; + static const char *no_attrs[] = { NULL }; ldb = ldb_module_get_ctx(ac->module); |