summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-25 16:36:31 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-26 11:57:07 -0600
commit7c146c42d2cf51e891b9f29d3b61a40f173a3b23 (patch)
treeb4484d79dfbaa433f5712f9b15a2ae1d00299357 /source4/lib
parentcc30cb5e24160d107b67936d71f54645d9b3d23f (diff)
downloadsamba-7c146c42d2cf51e891b9f29d3b61a40f173a3b23.tar.gz
samba-7c146c42d2cf51e891b9f29d3b61a40f173a3b23.tar.bz2
samba-7c146c42d2cf51e891b9f29d3b61a40f173a3b23.zip
r26593: - More work on the python versions of samba3dump and the samba3sam tests.
- Initial work converting the upgrade code to Python. - Removed the old EJS upgrade code because it has been broken for a long time. (This used to be commit 150cf39fbd4fe088546870fb0d8f20c0d9eb4aca)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb_wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb_wrap.c b/source4/lib/ldb_wrap.c
index d0abb5808a..63049b06fc 100644
--- a/source4/lib/ldb_wrap.c
+++ b/source4/lib/ldb_wrap.c
@@ -140,7 +140,7 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
return NULL;
}
- if (strcmp(lp_sam_url(lp_ctx), url) == 0) {
+ if (lp_ctx != NULL && strcmp(lp_sam_url(lp_ctx), url) == 0) {
dsdb_set_global_schema(ldb);
}