summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-08 01:02:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:58 -0500
commitd912d6fcef28fad1c6e1c04a3a2eb4ed9e1a4ca3 (patch)
tree3335d0fb05d1cd635399097b96dc3714628fed53 /source4/lib
parentf4f194aad102fb6c8740867ac198e1cad0796b63 (diff)
downloadsamba-d912d6fcef28fad1c6e1c04a3a2eb4ed9e1a4ca3.tar.gz
samba-d912d6fcef28fad1c6e1c04a3a2eb4ed9e1a4ca3.tar.bz2
samba-d912d6fcef28fad1c6e1c04a3a2eb4ed9e1a4ca3.zip
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)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c5
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c2
-rw-r--r--source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c2
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c2
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 = &ltdb_ops;