From d912d6fcef28fad1c6e1c04a3a2eb4ed9e1a4ca3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 8 Jun 2006 01:02:14 +0000 Subject: r16087: Fix silly cut-and-paste typo that cost me much of my afternoon... This only affects my new partitions module, which I will post soon, but should be fixed anyway. Andrew Bartlett (This used to be commit 8912c4e057eb3962321245cf49b92999afcc64fc) --- source4/lib/ldb/ldb_ildap/ldb_ildap.c | 5 +---- source4/lib/ldb/ldb_ldap/ldb_ldap.c | 2 +- source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 2 +- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index 340f89e48f..9251451549 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -833,7 +833,7 @@ static int ildb_connect(struct ldb_context *ldb, const char *url, return -1; } (*module)->ldb = ldb; - (*module)->prev = ldb->modules->next = NULL; + (*module)->prev = (*module)->next = NULL; (*module)->private_data = ildb; (*module)->ops = &ildb_ops; @@ -869,9 +869,6 @@ static int ildb_connect(struct ldb_context *ldb, const char *url, return 0; failed: - if (ldb->modules) { - ldb->modules->private_data = NULL; - } talloc_free(ildb); return -1; } diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index c74be37108..13f891108a 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -811,7 +811,7 @@ static int lldb_connect(struct ldb_context *ldb, return -1; } (*module)->ldb = ldb; - (*module)->prev = ldb->modules->next = NULL; + (*module)->prev = (*module)->next = NULL; (*module)->private_data = lldb; (*module)->ops = &lldb_ops; diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index 053ccd1b21..defd6fbbbc 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -2106,7 +2106,7 @@ static int lsqlite3_connect(struct ldb_context *ldb, goto failed; } (*module)->ldb = ldb; - (*module)->prev = ldb->modules->next = NULL; + (*module)->prev = (*module)->next = NULL; (*module)->private_data = lsqlite3; (*module)->ops = &lsqlite3_ops; diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index 224c25891c..c6b0ab4c63 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1028,7 +1028,7 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url, return -1; } (*module)->ldb = ldb; - (*module)->prev = ldb->modules->next = NULL; + (*module)->prev = (*module)->next = NULL; (*module)->private_data = ltdb; (*module)->ops = <db_ops; -- cgit