summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-02-02 10:30:52 -0500
committerTed Trask <ttrask01@yahoo.com>2015-02-02 10:30:52 -0500
commit55eadf121752afb389e1ce432c2ed5fc1874088d (patch)
tree81af6cc5363e8af9119bd2f15ed26b14adc6454a
parent168f8e45c8d83372e8786dbca2d076555100a5ea (diff)
downloadacf-openssl-55eadf121752afb389e1ce432c2ed5fc1874088d.tar.bz2
acf-openssl-55eadf121752afb389e1ce432c2ed5fc1874088d.tar.xz
Fix null reference exception in request
-rw-r--r--openssl-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl-model.lua b/openssl-model.lua
index 86bc3e7..edafbd7 100644
--- a/openssl-model.lua
+++ b/openssl-model.lua
@@ -489,8 +489,8 @@ mymodule.setreqdefaults = function(self, defaults)
return defaults
end
-mymodule.getnewrequest = function()
- local values = mymodule.getreqdefaults()
+mymodule.getnewrequest = function(self, clientdata)
+ local values = mymodule.getreqdefaults(self, clientdata)
-- In addition to the request defaults, we need a password and confirmation
values.value.password = cfe({ type="password", label="Password", seq=98 })
values.value.password_confirm = cfe({ type="password", label="Password confirmation", seq=99 })