summaryrefslogtreecommitdiff
path: root/source3/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-10 14:30:46 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-10 17:51:28 +1100
commitd035a600893bcbfeed97d8c65989eee6f067393a (patch)
tree81faea195b727b1a4f9f4237578c6745e6739242 /source3/lib/ldb
parent3ce800dcbe097f0683cedf7465f0562c7111444a (diff)
downloadsamba-d035a600893bcbfeed97d8c65989eee6f067393a.tar.gz
samba-d035a600893bcbfeed97d8c65989eee6f067393a.tar.bz2
samba-d035a600893bcbfeed97d8c65989eee6f067393a.zip
s3-ldb: use GUID_to_ndr_blob()
this also fixes an error in NTSTATUS handling
Diffstat (limited to 'source3/lib/ldb')
-rw-r--r--source3/lib/ldb/samba/ldif_handlers.c3
1 files changed, 1 insertions, 2 deletions
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;
}