multi-line fixes

git-svn-id: file:///home/svn/incoming/trunk@2780 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2005-07-17 08:28:52 +00:00
parent e6aa776371
commit 65670cd33e
1 changed files with 29 additions and 32 deletions

View File

@ -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,20 +75,19 @@ 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]
@ -99,22 +97,21 @@ 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, 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]