summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-07-16 13:41:57 +0300
committerAndrew Bartlett <abartlet@samba.org>2010-07-19 17:33:34 +1000
commita95fd4ef647ed6d4c81ab862e08e7c42ee2fe0d6 (patch)
tree8deae3383eec74072f2459d6796cd54edc66eb6d /source4/lib
parent8deae13313b87c0d7efa64e9334c06987ed90ac6 (diff)
downloadsamba-a95fd4ef647ed6d4c81ab862e08e7c42ee2fe0d6.tar.gz
samba-a95fd4ef647ed6d4c81ab862e08e7c42ee2fe0d6.tar.bz2
samba-a95fd4ef647ed6d4c81ab862e08e7c42ee2fe0d6.zip
s4-ldb: Write more explanatory comment for ldb_msg_add()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c11
1 files changed, 8 insertions, 3 deletions
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)