From 498f2b879a38b7b3888fcb2892a9d073417f7d84 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Dec 2009 11:24:54 +1100 Subject: s4-libcli: use new GUID functions in libcli --- source4/libcli/raw/rawrequest.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'source4/libcli/raw/rawrequest.c') diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c index 0f04190a8b..723e3d909c 100644 --- a/source4/libcli/raw/rawrequest.c +++ b/source4/libcli/raw/rawrequest.c @@ -991,21 +991,17 @@ size_t smbcli_blob_append_string(struct smbcli_session *session, pull a GUID structure from the wire. The buffer must be at least 16 bytes long */ -enum ndr_err_code smbcli_pull_guid(void *base, uint16_t offset, - struct GUID *guid) +NTSTATUS smbcli_pull_guid(void *base, uint16_t offset, + struct GUID *guid) { DATA_BLOB blob; - TALLOC_CTX *tmp_ctx = talloc_new(NULL); - enum ndr_err_code ndr_err; ZERO_STRUCTP(guid); blob.data = offset + (uint8_t *)base; blob.length = 16; - ndr_err = ndr_pull_struct_blob(&blob, tmp_ctx, NULL, guid, - (ndr_pull_flags_fn_t)ndr_pull_GUID); - talloc_free(tmp_ctx); - return ndr_err; + + return GUID_from_ndr_blob(&blob, guid); } /* -- cgit