From 71e29cbf56048791057ccf07b859654312f3882e Mon Sep 17 00:00:00 2001 From: Fernando J V da Silva Date: Wed, 25 Nov 2009 17:01:55 -0300 Subject: s4-drs: Using dsdb_msg_add_guid() utility function Uses the dsdb_msg_add_guid() to add any kind of GUID attribute to a ldb_message in several places of samba4 code. Signed-off-by: Andrew Tridgell --- source4/utils/oLschema2ldif.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source4/utils/oLschema2ldif.c') diff --git a/source4/utils/oLschema2ldif.c b/source4/utils/oLschema2ldif.c index f337432b6b..22a458c442 100644 --- a/source4/utils/oLschema2ldif.c +++ b/source4/utils/oLschema2ldif.c @@ -399,14 +399,7 @@ static struct ldb_message *process_entry(TALLOC_CTX *mem_ctx, const char *entry) memcpy(&guid, digest, sizeof(struct GUID)); - ndr_err = ndr_push_struct_blob(&schemaIdGuid, ctx, NULL, &guid, - (ndr_push_flags_fn_t)ndr_push_GUID); - - if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { - goto failed; - } - - if (ldb_msg_add_value(msg, "schemaIdGuid", &schemaIdGuid, NULL) != 0) { + if (dsdb_msg_add_guid(msg, &guid, "schemaIdGuid") != 0) { goto failed; } -- cgit