Skip to content

Commit

Permalink
Removing unnecessary lock
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Mar 26, 2019
1 parent 6f361b7 commit b0aaf06
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions w3af/core/controllers/plugins/audit_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,13 @@ def _has_no_bug(self, mutant, varname='', pname='', kb_varname=''):

query_location_tuple = (varname, mutant.get_url())

with self._plugin_lock:
for vuln in kb.kb.get_iter(pname, kb_varname):
vuln_location_tuple = (vuln.get_token_name(), vuln.get_url())
for vuln in kb.kb.get_iter(pname, kb_varname):
vuln_location_tuple = (vuln.get_token_name(), vuln.get_url())

if vuln_location_tuple == query_location_tuple:
return False
return True
if vuln_location_tuple == query_location_tuple:
return False

return True

def get_type(self):
return 'audit'

0 comments on commit b0aaf06

Please sign in to comment.