forked from osmocom/wireshark
Revert "Update PIDL source files with the API changes done in g021e7af"
This reverts commit e09d127a9a
.
Change-Id: Id34b9f5875b1d63aaeed96b3ffdc8ece63ab4134
Reviewed-on: https://code.wireshark.org/review/2436
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
d0ac937567
commit
39f6a8b669
|
@ -41,7 +41,7 @@ dnsserver_dissect_struct_DNS_RPC_NAME(tvbuff_t *tvb _U_, int offset _U_, packet_
|
|||
}
|
||||
|
||||
offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, di, drep, hf_dnsserver_DNS_RPC_NAME_NameLength, &len);
|
||||
bc = tvb_captured_length_remaining(tvb, offset);
|
||||
bc = tvb_length_remaining(tvb, offset);
|
||||
dn = get_unicode_or_ascii_string(tvb, &offset,
|
||||
TRUE, &dn_len, TRUE, TRUE, &bc);
|
||||
if (dn) {
|
||||
|
|
|
@ -66,7 +66,7 @@ eventlog_dissect_element_ReadEventLogW_data_(tvbuff_t *tvb, int offset, packet_i
|
|||
* NDR encoded at all and there are byte offsets into this buffer
|
||||
* encoded therein.
|
||||
*/
|
||||
record_tvb=tvb_new_subset(tvb, offset, MIN((gint)len, tvb_captured_length_remaining(tvb, offset)), len);
|
||||
record_tvb=tvb_new_subset(tvb, offset, MIN((gint)len, tvb_length_remaining(tvb, offset)), len);
|
||||
eventlog_dissect_struct_Record(record_tvb, 0, pinfo, tree, di, drep, hf_eventlog_Record, 0);
|
||||
offset+=len;
|
||||
|
||||
|
@ -97,7 +97,7 @@ eventlog_dissect_element_Record_sid_offset(tvbuff_t *tvb, int offset, packet_inf
|
|||
/* this blob contains an NT SID.
|
||||
* tvb starts at the beginning of the record.
|
||||
*/
|
||||
sid_tvb=tvb_new_subset(tvb, sid_offset, MIN((gint)sid_length, tvb_captured_length_remaining(tvb, offset)), sid_length);
|
||||
sid_tvb=tvb_new_subset(tvb, sid_offset, MIN((gint)sid_length, tvb_length_remaining(tvb, offset)), sid_length);
|
||||
dissect_nt_sid(sid_tvb, 0, tree, "SID", NULL, -1);
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ static int
|
|||
frsrpc_dissect_struct_frsrpc_CommPktChunkCtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep _U_, int hf_index, guint32 param _U_)
|
||||
{
|
||||
guint32 nb_chunk = 0;
|
||||
guint32 remaining = tvb_captured_length_remaining(tvb, offset);
|
||||
guint32 remaining = tvb_length_remaining(tvb, offset);
|
||||
int align_status = di->no_align;
|
||||
|
||||
if (remaining > 0) {
|
||||
|
@ -106,7 +106,7 @@ frsrpc_dissect_struct_frsrpc_CommPktChunkCtr(tvbuff_t *tvb, int offset, packet_i
|
|||
di->no_align = 1;
|
||||
for(nb_chunk = 0; remaining > 0; nb_chunk++) {
|
||||
offset = frsrpc_dissect_struct_CommPktChunk(tvb, offset, pinfo, subtree, di, drep, hf_CommPktChunk, param);
|
||||
remaining = tvb_captured_length_remaining(tvb, offset);
|
||||
remaining = tvb_length_remaining(tvb, offset);
|
||||
}
|
||||
di->no_align = align_status;
|
||||
}
|
||||
|
|
|
@ -366,8 +366,8 @@ lsarpc_dissect_element_lsa_DomainInfoEfs_efs_blob_(tvbuff_t *tvb _U_, int offset
|
|||
hf_lsarpc_efs_blob_len, &reported_len);
|
||||
|
||||
len = reported_len;
|
||||
if (len > tvb_captured_length_remaining(tvb, offset)) {
|
||||
len = tvb_captured_length_remaining(tvb, offset);
|
||||
if (len > tvb_length_remaining(tvb, offset)) {
|
||||
len = tvb_length_remaining(tvb, offset);
|
||||
}
|
||||
|
||||
next_tvb = tvb_new_subset(tvb, offset, len, reported_len);
|
||||
|
|
Loading…
Reference in New Issue