@@ -319,6 +319,11 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
319319 stopLimit = 1
320320
321321 try :
322+ threadData = getCurrentThreadData ()
323+ numThreads = min (conf .threads , stopLimit - startLimit )
324+ threadData .shared .limits = range (startLimit , stopLimit )
325+ threadData .shared .outputs = []
326+
322327 if stopLimit > TURN_OFF_RESUME_INFO_LIMIT :
323328 kb .suppressResumeInfo = True
324329 infoMsg = "suppressing possible resume console info because of "
@@ -329,11 +334,6 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
329334 for lock in lockNames :
330335 kb .locks [lock ] = threading .Lock ()
331336
332- threadData = getCurrentThreadData ()
333- numThreads = min (conf .threads , stopLimit - startLimit )
334- threadData .shared .limits = range (startLimit , stopLimit )
335- threadData .shared .outputs = []
336-
337337 def errorThread ():
338338 threadData = getCurrentThreadData ()
339339
@@ -361,8 +361,6 @@ def errorThread():
361361
362362 runThreads (numThreads , errorThread )
363363
364- outputs = threadData .shared .outputs
365-
366364 except KeyboardInterrupt :
367365 warnMsg = "user aborted during enumeration. sqlmap "
368366 warnMsg += "will display partial output"
@@ -375,6 +373,7 @@ def errorThread():
375373 logger .critical (errMsg )
376374
377375 finally :
376+ outputs = threadData .shared .outputs
378377 kb .suppressResumeInfo = False
379378
380379 if not outputs :
0 commit comments