From 10e1de3e06cf6b8a524f50685d6a675a2d49c9a9 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 15 Oct 2010 10:27:51 +0200 Subject: s4:samdb_msg_add_int* - use "ldb_msg_add_string" rather than "samdb_msg_add_string" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 Autobuild-Date: Fri Oct 15 09:11:49 UTC 2010 on sn-devel-104 --- source4/dsdb/common/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb') 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); } /* -- cgit