summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorCrístian Deives <cristiandeives@gmail.com>2009-11-23 15:47:51 -0200
committerAndrew Tridgell <tridge@samba.org>2009-11-30 20:22:13 +1100
commitbed9efa6cda17ecca91bdf71227ec656b94dcf94 (patch)
tree01dded56aa27f3814e97aebc7d172be02c3cb770 /source4/lib/ldb/common
parent7ca2ceb333de6c4daad10890b3e3022e1930235c (diff)
downloadsamba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.tar.gz
samba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.tar.bz2
samba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.zip
s4-ldb: changed ldb_msg_add_dn() to ldb_msg_add_linearized_dn()
this makes the usage clearer Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c
index f1dd6f3544..fbf49fbb23 100644
--- a/source4/lib/ldb/common/ldb_msg.c
+++ b/source4/lib/ldb/common/ldb_msg.c
@@ -263,10 +263,11 @@ int ldb_msg_add_steal_string(struct ldb_message *msg,
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)
+int ldb_msg_add_linearized_dn(struct ldb_message *msg, const char *attr_name,
+ struct ldb_dn *dn)
{
- return ldb_msg_add_string(msg, attr_name, ldb_dn_get_linearized(dn));
+ return ldb_msg_add_steal_string(msg, attr_name,
+ ldb_dn_alloc_linearized(msg, dn));
}
/*