ldb: ldb_errstring() takes ldb_contxt as an argument
authorAmitay Isaacs <amitay@gmail.com>
Tue, 18 Oct 2011 23:45:28 +0000 (10:45 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 20 Oct 2011 03:53:05 +0000 (05:53 +0200)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
lib/ldb/common/ldb_modules.c

index c8a53e2a059b543cdfbffa5db2dbe30adfe7ba21..47ec434be02d9fd205c2d9d3398e4f448776901a 100644 (file)
@@ -218,7 +218,7 @@ int ldb_module_connect_backend(struct ldb_context *ldb,
 
        if (ret != LDB_SUCCESS) {
                ldb_debug(ldb, LDB_DEBUG_ERROR,
-                         "Failed to connect to '%s' with backend '%s': %s", url, be->ops->name, ldb_errstring(ret));
+                         "Failed to connect to '%s' with backend '%s': %s", url, be->ops->name, ldb_errstring(ldb));
                return ret;
        }
        return ret;