svn commit: samba r9959 - in branches/SAMBA_4_0/source/lib/tdr: .
jelmer at samba.org
jelmer at samba.org
Fri Sep 2 14:45:41 GMT 2005
Author: jelmer
Date: 2005-09-02 14:45:40 +0000 (Fri, 02 Sep 2005)
New Revision: 9959
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9959
Log:
Fix bug where data offset was incorrect after parsing element with
[charset]
Modified:
branches/SAMBA_4_0/source/lib/tdr/tdr.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdr/tdr.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tdr/tdr.c 2005-09-02 14:12:04 UTC (rev 9958)
+++ branches/SAMBA_4_0/source/lib/tdr/tdr.c 2005-09-02 14:45:40 UTC (rev 9959)
@@ -43,23 +43,6 @@
#define TDR_SIVAL(tdr, ofs, v) do { if (TDR_BE(tdr)) { RSIVAL(tdr->data.data,ofs,v); } else SIVAL(tdr->data.data,ofs,v); } while (0)
#define TDR_SIVALS(tdr, ofs, v) do { if (TDR_BE(tdr)) { RSIVALS(tdr->data.data,ofs,v); } else SIVALS(tdr->data.data,ofs,v); } while (0)
-struct tdr_pull *tdr_pull_init(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob)
-{
- struct tdr_pull *tdr = talloc_zero(mem_ctx, struct tdr_pull);
- tdr->data = *blob;
- return tdr;
-}
-
-struct tdr_push *tdr_push_init(TALLOC_CTX *mem_ctx)
-{
- return talloc_zero(mem_ctx, struct tdr_push);
-}
-
-struct tdr_print *tdr_print_init(TALLOC_CTX *mem_ctx)
-{
- return talloc_zero(mem_ctx, struct tdr_print);
-}
-
/*
expand the available space in the buffer to 'size'
*/
@@ -166,6 +149,8 @@
return NT_STATUS_INVALID_PARAMETER;
}
+ tdr->offset += length * el_size;
+
return NT_STATUS_OK;
}
More information about the samba-cvs
mailing list