summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-08-14 03:28:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:34 -0500
commit4d9b1bda9a5856d7a3d6ff8df436c872b3f0ead0 (patch)
tree28c235830a21191837b7885f10ec7612dfeef0ef
parenta993f53d525799df410bab1061fdb28f52379b3c (diff)
downloadsamba-4d9b1bda9a5856d7a3d6ff8df436c872b3f0ead0.tar.gz
samba-4d9b1bda9a5856d7a3d6ff8df436c872b3f0ead0.tar.bz2
samba-4d9b1bda9a5856d7a3d6ff8df436c872b3f0ead0.zip
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)
-rw-r--r--source4/dsdb/samdb/samdb.c5
1 files 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);