r16087: Fix silly cut-and-paste typo that cost me much of my afternoon...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jun 2006 01:02:14 +0000 (01:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:58 +0000 (14:08 -0500)
This only affects my new partitions module, which I will post soon,
but should be fixed anyway.

Andrew Bartlett

source/lib/ldb/ldb_ildap/ldb_ildap.c
source/lib/ldb/ldb_ldap/ldb_ldap.c
source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
source/lib/ldb/ldb_tdb/ldb_tdb.c

index 340f89e48f71a14bdf002445489138414db4fd45..92514515491f6cae6beda333e35b752e21725985 100644 (file)
@@ -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;
 }
index c74be37108336b4f570978ea1bc4ec8f35be8653..13f891108a6fef0d008fadbafec311bc37ab267f 100644 (file)
@@ -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;
 
index 053ccd1b211f5cc0007beb8da0dafafab74cc229..defd6fbbbc1bbbde457e58ad0ef8356123cfa317 100644 (file)
@@ -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;
 
index 224c25891c8fcfd4308d85fa99b289d0d825d620..c6b0ab4c633c13ec54cdb49f928fc35a62d7e5d7 100644 (file)
@@ -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;