git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1169dd3
)
s4-ldb: added a warning about ldb_msg_add_dn
author
Andrew Tridgell
<tridge@samba.org>
Thu, 19 Nov 2009 18:03:59 +0000
(16:03 -0200)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 20 Nov 2009 03:41:27 +0000
(14:41 +1100)
ldb_msg_add_dn does not copy the dn linearized string
source4/lib/ldb/common/ldb_msg.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_msg.c
b/source4/lib/ldb/common/ldb_msg.c
index 375751262f56e31fa4f9521ba146720473d4dbc3..f1dd6f3544a2c08d49f0f6987a688aff6b4a945b 100644
(file)
--- 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)