summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-12-22 11:47:44 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-02 19:10:04 +0100
commit9ab7299b329e55e0a320afa9252f05639510453e (patch)
tree673d8b1690345209ecbf2352af1ea5958a4b8bf1 /lib
parent79f9a2240e310d8e1fecec67084f25be694ff3b8 (diff)
downloadsamba-9ab7299b329e55e0a320afa9252f05639510453e.tar.gz
samba-9ab7299b329e55e0a320afa9252f05639510453e.tar.bz2
samba-9ab7299b329e55e0a320afa9252f05639510453e.zip
ldb:ldb/common/ldb_controls.c - reference "err_string" variable correctly
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/ldb_controls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/common/ldb_controls.c b/lib/ldb/common/ldb_controls.c
index 5b5f3578d6..7ce4fc34af 100644
--- a/lib/ldb/common/ldb_controls.c
+++ b/lib/ldb/common/ldb_controls.c
@@ -1041,7 +1041,7 @@ struct ldb_control **ldb_parse_control_strings(struct ldb_context *ldb, TALLOC_C
for (i = 0; control_strings[i]; i++) {
ctrl[i] = ldb_parse_control_from_string(ldb, ctrl, control_strings[i]);
if (ctrl[i] == NULL) {
- if( ldb_errstring == NULL ) {
+ if (ldb_errstring(ldb) == NULL) {
/* no controls matched, throw an error */
ldb_asprintf_errstring(ldb, "Invalid control name: '%s'", control_strings[i]);
}