From c66780332bba2270ada4391fbb88728d06b94119 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 14 Oct 2010 22:26:44 +0200 Subject: s4:remove many invocations of "samdb_msg_add_string" This call can be substituted by "ldb_msg_add_string". We only need to be careful on local objects or talloc'ed ones which live shorter than the message. Signed-off-by: Andrew Bartlett --- source4/ntptr/simple_ldb/ntptr_simple_ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/ntptr') diff --git a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c index 5849df9c04..27ab6dec6d 100644 --- a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c +++ b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c @@ -76,7 +76,7 @@ static int sptr_db_search(struct ldb_context *ldb, #define SET_STRING(ldb, mod, attr, value) do { \ if (value == NULL) return WERR_INVALID_PARAM; \ - if (samdb_msg_add_string(ldb, (TALLOC_CTX *)mod, mod, attr, value) != LDB_SUCCESS) { \ + if (ldb_msg_add_string(mod, attr, value) != LDB_SUCCESS) { \ return WERR_NOMEM; \ } \ } while (0) -- cgit