Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Feb 3, 2013
1 parent dc2bbbe commit b55555e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# Local global variables
adminid = ""
db = None
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
db_filepath = None
tasks = dict()

# API objects
Expand Down Expand Up @@ -553,6 +553,7 @@ def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT):
global db_filepath

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

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

0 comments on commit b55555e

Please sign in to comment.