From: Andrew Tridgell Date: Thu, 19 Nov 2009 18:03:59 +0000 (-0200) Subject: s4-ldb: added a warning about ldb_msg_add_dn X-Git-Tag: tdb-1.2.0~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51a59e8f9ed930eaa8f2936972b810fdd0acccbd;p=thirdparty%2Fsamba.git s4-ldb: added a warning about ldb_msg_add_dn ldb_msg_add_dn does not copy the dn linearized string --- diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 375751262f5..f1dd6f3544a 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -260,6 +260,8 @@ int ldb_msg_add_steal_string(struct ldb_message *msg, /* add a DN element to a message + WARNING: this uses the linearized string from the dn, and does not + copy the string. */ int ldb_msg_add_dn(struct ldb_message *msg, const char *attr_name, struct ldb_dn *dn)