diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-04 03:27:10 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-04 12:57:33 +0000 |
commit | 78b05a3116b26e57f43f2d27038d8688f245d33e (patch) | |
tree | 1b674b6392652c4ae855a236b161cc30d38c21a5 /source4/lib | |
parent | e7aa7a0c3305240b2d89db81141c5d383e75adc8 (diff) | |
download | samba-78b05a3116b26e57f43f2d27038d8688f245d33e.tar.gz samba-78b05a3116b26e57f43f2d27038d8688f245d33e.tar.bz2 samba-78b05a3116b26e57f43f2d27038d8688f245d33e.zip |
s4-ldb_module.h: use LDB error code for ldb_error() macro rather than LDB_DEBUG_FATAL
We end up calling ldb_error_at() which expects an LDB error,
but LDB_DEBUG_FATAL is not such code. It is actually equal to LDB_SUCCESS.
Thus the effect is that we report a *fatal* error, but return
LDB_SUCCESS in many places.
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Nov 4 12:57:33 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/include/ldb_module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h index e88c887f20..50c606b082 100644 --- a/source4/lib/ldb/include/ldb_module.h +++ b/source4/lib/ldb/include/ldb_module.h @@ -78,7 +78,7 @@ void ldb_debug_end(struct ldb_context *ldb, enum ldb_debug_level level); #define ldb_error(ldb, ecode, reason) ldb_error_at(ldb, ecode, reason, __FILE__, __LINE__) -#define ldb_oom(ldb) ldb_error(ldb, LDB_DEBUG_FATAL, "ldb out of memory") +#define ldb_oom(ldb) ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR, "ldb out of memory") #define ldb_module_oom(module) ldb_oom(ldb_module_get_ctx(module)) #define ldb_operr(ldb) ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR, "operations error") |