mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-21 13:26:07 +03:00
fix for a bug reported by m4l1c3 (AttributeError: '_MainThread' object has no attribute 'ident')
This commit is contained in:
parent
e10670d9ac
commit
8067365b93
|
@ -409,7 +409,7 @@ james <james@ev6.net>
|
||||||
for reporting a bug
|
for reporting a bug
|
||||||
|
|
||||||
m4l1c3 <malice.anon@gmail.com>
|
m4l1c3 <malice.anon@gmail.com>
|
||||||
for reporting a minor bug
|
for reporting a few bugs
|
||||||
|
|
||||||
mariano <marianoso@gmail.com>
|
mariano <marianoso@gmail.com>
|
||||||
for reporting a bug
|
for reporting a bug
|
||||||
|
|
|
@ -1541,18 +1541,18 @@ def longestCommonPrefix(*sequences):
|
||||||
def commonFinderOnly(initial, sequence):
|
def commonFinderOnly(initial, sequence):
|
||||||
return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence))
|
return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence))
|
||||||
|
|
||||||
def getCurrentThreadID():
|
def getCurrentThreadUID():
|
||||||
return threading.currentThread().ident
|
return hash(threading.currentThread())
|
||||||
|
|
||||||
def getCurrentThreadData():
|
def getCurrentThreadData():
|
||||||
"""
|
"""
|
||||||
Returns current thread's dependent data
|
Returns current thread's dependent data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
threadID = getCurrentThreadID()
|
threadUID = getCurrentThreadUID()
|
||||||
if threadID not in kb.threadData:
|
if threadUID not in kb.threadData:
|
||||||
kb.threadData[threadID] = ThreadData()
|
kb.threadData[threadUID] = ThreadData()
|
||||||
return kb.threadData[threadID]
|
return kb.threadData[threadUID]
|
||||||
|
|
||||||
def pushValue(value):
|
def pushValue(value):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user