From 4d9b1bda9a5856d7a3d6ff8df436c872b3f0ead0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 14 Aug 2006 03:28:25 +0000 Subject: r17530: Watching the build farm mails carefully pays off... This was another declaration before statement bug, in my just-committed code.. Andrew Bartlett (This used to be commit 1d1bf6b20512653c1de7920388f16fbef936ed47) --- source4/dsdb/samdb/samdb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 81b5afb2ee..8351ad5baf 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -680,11 +680,10 @@ int samdb_copy_template(struct ldb_context *ldb, struct ldb_result *res; struct ldb_message *t; int ret, i, j; - - *errstring = NULL; - struct ldb_dn *basedn = ldb_dn_explode(ldb, "cn=Templates"); + *errstring = NULL; + /* pull the template record */ ret = ldb_search(ldb, basedn, LDB_SCOPE_SUBTREE, filter, NULL, &res); talloc_free(basedn); -- cgit