multi-line fixes
git-svn-id: file:///home/svn/incoming/trunk@2780 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e6aa776371
commit
65670cd33e
|
@ -47,8 +47,7 @@ class DCERPC::Response
|
||||||
self.max_frag_xmit,
|
self.max_frag_xmit,
|
||||||
self.max_frag_recv,
|
self.max_frag_recv,
|
||||||
self.assoc_group,
|
self.assoc_group,
|
||||||
self.sec_addr_len,
|
self.sec_addr_len = data.unpack('CCCCNvvVvvVv')
|
||||||
= data.unpack('CCCCNvvVvvVv')
|
|
||||||
|
|
||||||
# XXX This is still somewhat broken (4 digit ports)
|
# XXX This is still somewhat broken (4 digit ports)
|
||||||
self.sec_addr = data[26, self.sec_addr_len]
|
self.sec_addr = data[26, self.sec_addr_len]
|
||||||
|
@ -75,21 +74,20 @@ class DCERPC::Response
|
||||||
|
|
||||||
|
|
||||||
# RESPONSE == 2
|
# RESPONSE == 2
|
||||||
if (self.type == 2)
|
if (self.type == 2)
|
||||||
|
|
||||||
# Decode the DCERPC response header
|
# Decode the DCERPC response header
|
||||||
(
|
self.vers_major,
|
||||||
self.vers_major,
|
self.vers_minor,
|
||||||
self.vers_minor,
|
trash,
|
||||||
trash,
|
self.flags,
|
||||||
self.flags,
|
self.data_rep,
|
||||||
self.data_rep,
|
self.frag_len,
|
||||||
self.frag_len,
|
self.auth_len,
|
||||||
self.auth_len,
|
self.call_id,
|
||||||
self.call_id,
|
self.alloc_hint,
|
||||||
self.alloc_hint,
|
self.context_id,
|
||||||
self.context_id,
|
self.cancel_cnt = data.unpack('CCCCNvvVVvC')
|
||||||
self.cancel_cnt,
|
|
||||||
) = data.unpack('CCCCNvvVVvC')
|
|
||||||
|
|
||||||
# Put the application data into self.stub_data
|
# Put the application data into self.stub_data
|
||||||
self.stub_data = data[data.length - self.alloc_hint, 0xffff]
|
self.stub_data = data[data.length - self.alloc_hint, 0xffff]
|
||||||
|
@ -98,23 +96,22 @@ class DCERPC::Response
|
||||||
end
|
end
|
||||||
|
|
||||||
# FAULT == 2
|
# FAULT == 2
|
||||||
if (self.type == 3)
|
if (self.type == 3)
|
||||||
|
|
||||||
# Decode the DCERPC response header
|
# Decode the DCERPC response header
|
||||||
(
|
self.vers_major,
|
||||||
self.vers_major,
|
self.vers_minor,
|
||||||
self.vers_minor,
|
trash,
|
||||||
trash,
|
self.flags,
|
||||||
self.flags,
|
self.data_rep,
|
||||||
self.data_rep,
|
self.frag_len,
|
||||||
self.frag_len,
|
self.auth_len,
|
||||||
self.auth_len,
|
self.call_id,
|
||||||
self.call_id,
|
self.alloc_hint,
|
||||||
self.alloc_hint,
|
self.context_id,
|
||||||
self.context_id,
|
self.cancel_cnt,
|
||||||
self.cancel_cnt,
|
trash,
|
||||||
trash,
|
self.status = data.unpack('CCCCNvvVVvCCV')
|
||||||
self.status,
|
|
||||||
) = data.unpack('CCCCNvvVVvCCV')
|
|
||||||
|
|
||||||
# Put the application data into self.stub_data
|
# Put the application data into self.stub_data
|
||||||
self.stub_data = data[data.length - self.alloc_hint, 0xffff]
|
self.stub_data = data[data.length - self.alloc_hint, 0xffff]
|
||||||
|
|
Loading…
Reference in New Issue