summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/proxy.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-04-10 20:47:18 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-04-29 19:05:04 +0200
commitbbf28703a47fc464a7d5dac25e6a4a6cf96fe3e9 (patch)
tree9e4e77cec64f57974efd3b328f87f67170e2cbb0 /source4/dsdb/samdb/ldb_modules/proxy.c
parent6611f0109b73d8c9ff5679e434aa8e354f28608a (diff)
downloadsamba-bbf28703a47fc464a7d5dac25e6a4a6cf96fe3e9.tar.gz
samba-bbf28703a47fc464a7d5dac25e6a4a6cf96fe3e9.tar.bz2
samba-bbf28703a47fc464a7d5dac25e6a4a6cf96fe3e9.zip
s4:"ldb_connect" calls - proof for "!= LDB_SUCCESS"
Reviewed-by: abartlet
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/proxy.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/proxy.c b/source4/dsdb/samdb/ldb_modules/proxy.c
index 6fba24fc2d..5f6e56f9d4 100644
--- a/source4/dsdb/samdb/ldb_modules/proxy.c
+++ b/source4/dsdb/samdb/ldb_modules/proxy.c
@@ -138,7 +138,7 @@ static int load_proxy_info(struct ldb_module *module)
ldb_set_opaque(proxy->upstream, "credentials", creds);
ret = ldb_connect(proxy->upstream, url, 0, NULL);
- if (ret != 0) {
+ if (ret != LDB_SUCCESS) {
ldb_debug(ldb, LDB_DEBUG_FATAL, "proxy failed to connect to %s\n", url);
goto failed;
}