From 88801709781df4fc84bf4b9da12d7f1808bdd86b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 16 Nov 2009 10:19:42 +1100 Subject: [PATCH] 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 --- source4/dsdb/samdb/ldb_modules/samldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 390950bb753..bfc4cac33e1 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); -- 2.34.1