summaryrefslogtreecommitdiff
path: root/libcli/ldap
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-10 14:31:13 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-10 17:51:28 +1100
commit1b20002cc246f6bab6fe2369412bd4c65311785f (patch)
treeec854e78b9301e00877e10dfaf25397501a16960 /libcli/ldap
parentd035a600893bcbfeed97d8c65989eee6f067393a (diff)
downloadsamba-1b20002cc246f6bab6fe2369412bd4c65311785f.tar.gz
samba-1b20002cc246f6bab6fe2369412bd4c65311785f.tar.bz2
samba-1b20002cc246f6bab6fe2369412bd4c65311785f.zip
libcli: use GUID_to_ndr_blob()
Diffstat (limited to 'libcli/ldap')
-rw-r--r--libcli/ldap/ldap_ndr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcli/ldap/ldap_ndr.c b/libcli/ldap/ldap_ndr.c
index dd820ff8d5..6f1bb4ee37 100644
--- a/libcli/ldap/ldap_ndr.c
+++ b/libcli/ldap/ldap_ndr.c
@@ -64,11 +64,10 @@ char *ldap_encode_ndr_dom_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
char *ldap_encode_ndr_GUID(TALLOC_CTX *mem_ctx, struct GUID *guid)
{
DATA_BLOB blob;
- enum ndr_err_code ndr_err;
+ NTSTATUS status;
char *ret;
- ndr_err = ndr_push_struct_blob(&blob, 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, &blob);
+ if (!NT_STATUS_IS_OK(status)) {
return NULL;
}
ret = ldb_binary_encode(mem_ctx, blob);