Skip to content

Commit

Permalink
Fixing a typo. This should correct reset layer to default button func…
Browse files Browse the repository at this point in the history
…tionality while using scapy backend.

git-svn-id: http://svn.umitproject.org/svnroot/umit/packet-manipulator/trunk@5917 1105ee14-b0fa-0310-85a5-ff3eed429ff7
  • Loading branch information
nopper committed Apr 22, 2011
1 parent d8c1105 commit 566f9af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions umit/pm/backend/scapy/packet.py
Expand Up @@ -289,7 +289,7 @@ def reset(self, protocol=None, startproto=None, field=None):
# proto filtering is active and the current is not
# the target protocol.

current = find.payload
current = current.payload
continue

if field is not None:
Expand All @@ -301,7 +301,7 @@ def reset(self, protocol=None, startproto=None, field=None):
# Ok. Let's return because we have reached our
# field!

return
return True
else:
# If we are here we should reset all the fields!
# kill them all man!
Expand All @@ -314,10 +314,12 @@ def reset(self, protocol=None, startproto=None, field=None):
# at this point so it's safe to return

if protocol_found:
return
return True

current = current.payload

return False

def haslayer(self, layer):
return bool(self.root.haslayer(layer))

Expand Down

0 comments on commit 566f9af

Please sign in to comment.