svn commit: samba r18393 - in branches/SAMBA_3_0/source/rpc_parse: .
jerry at samba.org
jerry at samba.org
Mon Sep 11 19:32:55 GMT 2006
Author: jerry
Date: 2006-09-11 19:32:55 +0000 (Mon, 11 Sep 2006)
New Revision: 18393
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18393
Log:
get the data size and not offset when initializing a data blob from a prs structure
Modified:
branches/SAMBA_3_0/source/rpc_parse/parse_prs.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_prs.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_prs.c 2006-09-11 16:54:54 UTC (rev 18392)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_prs.c 2006-09-11 19:32:55 UTC (rev 18393)
@@ -1816,8 +1816,11 @@
********************************************************************/
BOOL prs_data_blob(prs_struct *prs, DATA_BLOB *blob, TALLOC_CTX *mem_ctx)
{
- blob->length = prs_offset(prs);
+ blob->length = prs_data_size(prs);
blob->data = (uint8 *)talloc_zero_size(mem_ctx, blob->length);
+
+ /* set the pointer at the end of the buffer */
+ prs_set_offset( prs, prs_data_size(prs) );
if (!prs_copy_all_data_out((char *)blob->data, prs))
return False;
More information about the samba-cvs
mailing list