mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
minor optimization
This commit is contained in:
parent
4989e8e6d3
commit
dacfeafc5f
|
@ -10,6 +10,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
import hashlib
|
import hashlib
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
from lib.core.data import conf
|
||||||
from lib.core.settings import UNICODE_ENCODING
|
from lib.core.settings import UNICODE_ENCODING
|
||||||
from lib.core.threads import getCurrentThreadData
|
from lib.core.threads import getCurrentThreadData
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ class HashDB(object):
|
||||||
|
|
||||||
def retrieve(self, key):
|
def retrieve(self, key):
|
||||||
retVal = None
|
retVal = None
|
||||||
if key:
|
if key and not any([conf.flushSession, conf.freshQueries]):
|
||||||
hash_ = self.hashKey(key)
|
hash_ = self.hashKey(key)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user