From d035a600893bcbfeed97d8c65989eee6f067393a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Dec 2009 14:30:46 +1100 Subject: s3-ldb: use GUID_to_ndr_blob() this also fixes an error in NTSTATUS handling --- source3/lib/ldb/samba/ldif_handlers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/ldb') diff --git a/source3/lib/ldb/samba/ldif_handlers.c b/source3/lib/ldb/samba/ldif_handlers.c index 689a668c9e..61619c5b9b 100644 --- a/source3/lib/ldb/samba/ldif_handlers.c +++ b/source3/lib/ldb/samba/ldif_handlers.c @@ -146,8 +146,7 @@ static int ldif_read_objectGUID(struct ldb_context *ldb, void *mem_ctx, return -1; } - status = ndr_push_struct_blob(out, mem_ctx, &guid, - (ndr_push_flags_fn_t)ndr_push_GUID); + status = GUID_to_ndr_blob(&guid, mem_ctx, out); if (!NT_STATUS_IS_OK(status)) { return -1; } -- cgit