From a95fd4ef647ed6d4c81ab862e08e7c42ee2fe0d6 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Fri, 16 Jul 2010 13:41:57 +0300 Subject: s4-ldb: Write more explanatory comment for ldb_msg_add() Signed-off-by: Andrew Bartlett --- source4/lib/ldb/common/ldb_msg.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 9f96ae6cbf..ca7b961953 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -150,9 +150,14 @@ int ldb_msg_add_empty( struct ldb_message *msg, return LDB_SUCCESS; } -/* - add an empty element to a message -*/ +/** + * Adds an element to a message. + * + * NOTE: Ownership of ldb_message_element fields + * is NOT transferred. Thus, if *el pointer + * is invalidated for some reason, this will + * corrupt *msg contents also + */ int ldb_msg_add(struct ldb_message *msg, const struct ldb_message_element *el, int flags) -- cgit