summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-09-18 10:47:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:15 -0500
commit46a8d809376cab59c579c654b0de5105727a9585 (patch)
treedab315ccb06125c1e9a1c395b64a2f870baec9f5 /source4/lib/ldb/include
parentbb8f5c93ee3369e112d99d4d3497dc803abdbf76 (diff)
downloadsamba-46a8d809376cab59c579c654b0de5105727a9585.tar.gz
samba-46a8d809376cab59c579c654b0de5105727a9585.tar.bz2
samba-46a8d809376cab59c579c654b0de5105727a9585.zip
r10304: check for basic ldb_message sanity and return appropriate
LDB_ERR_ value (This used to be commit 610f5646f0816820ac9342e81d46d139e26cc918)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h3
-rw-r--r--source4/lib/ldb/include/ldb_private.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 66b0343891..008327eb05 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -3,6 +3,7 @@
Copyright (C) Andrew Tridgell 2004
Copyright (C) Stefan Metzmacher 2004
+ Copyright (C) Simo Sorce 2005
** NOTE! The following LGPL license applies to the ldb
** library. This does NOT imply that all of Samba is released
@@ -451,6 +452,8 @@ struct ldb_message *ldb_msg_diff(struct ldb_context *ldb,
struct ldb_message *msg1,
struct ldb_message *msg2);
+int ldb_msg_sanity_check(const struct ldb_message *msg);
+
struct ldb_val ldb_val_dup(void *mem_ctx, const struct ldb_val *v);
/*
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h
index e55a19c28c..96cd458920 100644
--- a/source4/lib/ldb/include/ldb_private.h
+++ b/source4/lib/ldb/include/ldb_private.h
@@ -3,7 +3,7 @@
Copyright (C) Andrew Tridgell 2004
Copyright (C) Stefan Metzmacher 2004
- Copyright (C) Simo Sorce 2004
+ Copyright (C) Simo Sorce 2004-2005
** NOTE! The following LGPL license applies to the ldb
** library. This does NOT imply that all of Samba is released