mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-02 19:25:48 +03:00
fix for a bug reported by aboynes@gmail.com (UnboundLocalError: local variable 'infoMsg' referenced before assignment)
This commit is contained in:
parent
9e453e8709
commit
8a36f7fc03
|
@ -702,6 +702,8 @@ class Enumeration:
|
|||
if len(kb.data.cachedDbs) > 0:
|
||||
return kb.data.cachedDbs
|
||||
|
||||
infoMsg = None
|
||||
|
||||
if Backend.isDbms(DBMS.MYSQL) and not kb.data.has_information_schema:
|
||||
warnMsg = "information_schema not available, "
|
||||
warnMsg += "back-end DBMS is MySQL < 5. database "
|
||||
|
@ -725,7 +727,8 @@ class Enumeration:
|
|||
else:
|
||||
infoMsg = "fetching database names"
|
||||
|
||||
logger.info(infoMsg)
|
||||
if infoMsg:
|
||||
logger.info(infoMsg)
|
||||
|
||||
rootQuery = queries[Backend.getIdentifiedDbms()].dbs
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user