diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-11-19 16:03:59 -0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-11-20 14:41:27 +1100 |
commit | 51a59e8f9ed930eaa8f2936972b810fdd0acccbd (patch) | |
tree | b161bc11d822aa15f06483938c62628d82c86659 /source4/lib | |
parent | 1169dd3b50dfefa59b56cd1897bcd0b6c2ffb3be (diff) | |
download | samba-51a59e8f9ed930eaa8f2936972b810fdd0acccbd.tar.gz samba-51a59e8f9ed930eaa8f2936972b810fdd0acccbd.tar.bz2 samba-51a59e8f9ed930eaa8f2936972b810fdd0acccbd.zip |
s4-ldb: added a warning about ldb_msg_add_dn
ldb_msg_add_dn does not copy the dn linearized string
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/common/ldb_msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 375751262f..f1dd6f3544 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) |