svn commit: samba r21996 - in branches/SAMBA_4_0: .
source/pidl/lib/Parse/Pidl/Wireshark
jelmer at samba.org
jelmer at samba.org
Tue Mar 27 23:22:42 GMT 2007
Author: jelmer
Date: 2007-03-27 23:22:41 +0000 (Tue, 27 Mar 2007)
New Revision: 21996
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21996
Log:
Fix a bug for invalid casts of pointers.
Patch by Ronnie Sahlberg.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:merge
...skipped...
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-03-27 23:04:08 UTC (rev 21995)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-03-27 23:22:41 UTC (rev 21996)
@@ -162,7 +162,14 @@
pidl_code "$dissectorname(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_, int hf_index _U_, guint32 *param _U_)";
pidl_code "{";
indent;
- pidl_code "offset = dissect_ndr_$e->{BASE_TYPE}(tvb, offset, pinfo, tree, drep, hf_index, param);";
+ pidl_code "g$e->{BASE_TYPE} parameter;";
+ pidl_code "parameter=(g$e->{BASE_TYPE})*param;";
+ pidl_code "offset = dissect_ndr_$e->{BASE_TYPE}(tvb, offset, pinfo, tree, drep, hf_index, ¶meter);";
+ pidl_code "if(param){";
+ indent;
+ pidl_code "*param=(guint32)parameter;";
+ deindent;
+ pidl_code "}";
pidl_code "return offset;";
deindent;
pidl_code "}\n";
More information about the samba-cvs
mailing list