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]
|
||||||
|
@ -76,8 +75,8 @@ 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,
|
||||||
|
@ -88,8 +87,7 @@ class DCERPC::Response
|
||||||
self.call_id,
|
self.call_id,
|
||||||
self.alloc_hint,
|
self.alloc_hint,
|
||||||
self.context_id,
|
self.context_id,
|
||||||
self.cancel_cnt,
|
self.cancel_cnt = data.unpack('CCCCNvvVVvC')
|
||||||
) = 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]
|
||||||
|
@ -99,8 +97,8 @@ class DCERPC::Response
|
||||||
|
|
||||||
# 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,
|
||||||
|
@ -113,8 +111,7 @@ class DCERPC::Response
|
||||||
self.context_id,
|
self.context_id,
|
||||||
self.cancel_cnt,
|
self.cancel_cnt,
|
||||||
trash,
|
trash,
|
||||||
self.status,
|
self.status = data.unpack('CCCCNvvVVvCCV')
|
||||||
) = 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