Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b55555e

Browse files
committed
minor bug fix
1 parent dc2bbbe commit b55555e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/utils/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# Local global variables
4949
adminid = ""
5050
db = None
51-
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
51+
db_filepath = None
5252
tasks = dict()
5353

5454
# API objects
@@ -553,6 +553,7 @@ def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT):
553553
global db_filepath
554554

555555
adminid = hexencode(os.urandom(16))
556+
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
556557

557558
logger.info("Running REST-JSON API server at '%s:%d'.." % (host, port))
558559
logger.info("Admin ID: %s" % adminid)

0 commit comments

Comments
 (0)