diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-07-06 05:08:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:47 -0500 |
commit | 44e6f21393ea6f2531c6d1e789a0a01582bc6dca (patch) | |
tree | 3d34180ed1de88b3e0e8e63832fb138ba4e33b96 /source4/lib/ldb/include | |
parent | 927cbf74ae1c08876a717f739449177d03740f2e (diff) | |
download | samba-44e6f21393ea6f2531c6d1e789a0a01582bc6dca.tar.gz samba-44e6f21393ea6f2531c6d1e789a0a01582bc6dca.tar.bz2 samba-44e6f21393ea6f2531c6d1e789a0a01582bc6dca.zip |
r16825: Make ldb_sainity_check() set an error string. This makes it much
easier to chase down what modules or application code gets wrong.
Ensure not to leave memory allocated on failure in ldb_search()
Andrew Bartlett
(This used to be commit 0828739951ed879640f8ed6e4700d8ca6b8221b8)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index b684b03ef4..2f0464b953 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1207,7 +1207,8 @@ int ldb_msg_check_string_attribute(const struct ldb_message *msg, LDB_ERR_INVALID_ATTRIBUTE_SYNTAX) if there is a problem with a message. */ -int ldb_msg_sanity_check(const struct ldb_message *msg); +int ldb_msg_sanity_check(struct ldb_context *ldb, + const struct ldb_message *msg); /** Duplicate an ldb_val structure |