diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-10 14:32:47 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-10 17:51:29 +1100 |
commit | 215cc5a9edfbe9b50440266fba72e8f91c64066b (patch) | |
tree | 278d868f27739c7304302170377a8aa1010923e8 /source4/lib/ldb-samba | |
parent | 982228605f3bc77901467f1673bd1385808423e0 (diff) | |
download | samba-215cc5a9edfbe9b50440266fba72e8f91c64066b.tar.gz samba-215cc5a9edfbe9b50440266fba72e8f91c64066b.tar.bz2 samba-215cc5a9edfbe9b50440266fba72e8f91c64066b.zip |
s4-ldb: use GUID_to_ndr_blob()
Diffstat (limited to 'source4/lib/ldb-samba')
-rw-r--r-- | source4/lib/ldb-samba/ldif_handlers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c index 86bb1a1c7c..27aa749f36 100644 --- a/source4/lib/ldb-samba/ldif_handlers.c +++ b/source4/lib/ldb-samba/ldif_handlers.c @@ -215,16 +215,14 @@ static int ldif_read_objectGUID(struct ldb_context *ldb, void *mem_ctx, { struct GUID guid; NTSTATUS status; - enum ndr_err_code ndr_err; status = GUID_from_data_blob(in, &guid); if (!NT_STATUS_IS_OK(status)) { return -1; } - ndr_err = ndr_push_struct_blob(out, mem_ctx, NULL, &guid, - (ndr_push_flags_fn_t)ndr_push_GUID); - if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { + status = GUID_to_ndr_blob(&guid, mem_ctx, out); + if (!NT_STATUS_IS_OK(status)) { return -1; } return 0; |