summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-15 10:27:51 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-15 09:11:49 +0000
commit10e1de3e06cf6b8a524f50685d6a675a2d49c9a9 (patch)
treeb4578f24ec681c3ef59d1363c38eeb3f58f27ad0 /source4/dsdb
parent666e0c3cce32c259dfaaf03383fac58940994dbc (diff)
downloadsamba-10e1de3e06cf6b8a524f50685d6a675a2d49c9a9.tar.gz
samba-10e1de3e06cf6b8a524f50685d6a675a2d49c9a9.tar.bz2
samba-10e1de3e06cf6b8a524f50685d6a675a2d49c9a9.zip
s4:samdb_msg_add_int* - use "ldb_msg_add_string" rather than "samdb_msg_add_string"
"ldb_msg_add_string" is safe here since the integer has already been converted to a string which is "talloc"ed on "mem_ctx". Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 15 09:11:49 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index d0fc3b1b0e..1d28771a5f 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -929,7 +929,7 @@ int samdb_msg_add_int(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct l
if (s == NULL) {
return ldb_oom(sam_ldb);
}
- return samdb_msg_add_string(sam_ldb, mem_ctx, msg, attr_name, s);
+ return ldb_msg_add_string(msg, attr_name, s);
}
/*
@@ -951,7 +951,7 @@ int samdb_msg_add_int64(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct
if (s == NULL) {
return ldb_oom(sam_ldb);
}
- return samdb_msg_add_string(sam_ldb, mem_ctx, msg, attr_name, s);
+ return ldb_msg_add_string(msg, attr_name, s);
}
/*