git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d035a60
)
libcli: use GUID_to_ndr_blob()
author
Andrew Tridgell
<tridge@samba.org>
Thu, 10 Dec 2009 03:31:13 +0000
(14:31 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 10 Dec 2009 06:51:28 +0000
(17:51 +1100)
libcli/ldap/ldap_ndr.c
patch
|
blob
|
history
diff --git
a/libcli/ldap/ldap_ndr.c
b/libcli/ldap/ldap_ndr.c
index dd820ff8d5fcde86cb695061ce2218543ef41095..6f1bb4ee377b6e96c343b72f38cec931e3470ff7 100644
(file)
--- 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);