Commit d21bec5c authored by Jelte Jansen's avatar Jelte Jansen
Browse files

reply var could be uninitialized, so set to None before doing len check


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@746 e5f2f494-b856-4b98-b285-d166d9295462
parent 737d95ac
......@@ -162,6 +162,7 @@ class SecureHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
param = None
len = self.headers.get('Content-Length')
rcode = http.client.OK
reply = None
if len:
post_str = str(self.rfile.read(int(len)).decode())
print("command parameter:%s" % post_str)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment