mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
fix for a bug reported by m4l1c3 (AttributeError: '_MainThread' object has no attribute 'ident')
This commit is contained in:
parent
e10670d9ac
commit
8067365b93
2 changed files with 7 additions and 7 deletions
|
|
@ -1541,18 +1541,18 @@ def longestCommonPrefix(*sequences):
|
|||
def commonFinderOnly(initial, sequence):
|
||||
return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence))
|
||||
|
||||
def getCurrentThreadID():
|
||||
return threading.currentThread().ident
|
||||
def getCurrentThreadUID():
|
||||
return hash(threading.currentThread())
|
||||
|
||||
def getCurrentThreadData():
|
||||
"""
|
||||
Returns current thread's dependent data
|
||||
"""
|
||||
|
||||
threadID = getCurrentThreadID()
|
||||
if threadID not in kb.threadData:
|
||||
kb.threadData[threadID] = ThreadData()
|
||||
return kb.threadData[threadID]
|
||||
threadUID = getCurrentThreadUID()
|
||||
if threadUID not in kb.threadData:
|
||||
kb.threadData[threadUID] = ThreadData()
|
||||
return kb.threadData[threadUID]
|
||||
|
||||
def pushValue(value):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue