summaryrefslogtreecommitdiffstats
path: root/tests/config
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2019-09-13 18:26:19 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2020-10-21 13:05:55 +0200
commit99e014ac6352a6ded4142f3c1b9b530dc02e0baf (patch)
tree638194e70bc14be0289e86c33aaab2df39ca301c /tests/config
parentiterate nitpick: drop unused function parameter (diff)
downloadknot-resolver-99e014ac6352a6ded4142f3c1b9b530dc02e0baf.tar.xz
knot-resolver-99e014ac6352a6ded4142f3c1b9b530dc02e0baf.zip
WIP delay allocation of kr_request::answer
FIXME: see FIXMEs in diff, document the API change, re-review.
Diffstat (limited to 'tests/config')
-rw-r--r--tests/config/doh2.test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/config/doh2.test.lua b/tests/config/doh2.test.lua
index 79b051df..0d6a3eb6 100644
--- a/tests/config/doh2.test.lua
+++ b/tests/config/doh2.test.lua
@@ -3,7 +3,7 @@ local basexx = require('basexx')
local ffi = require('ffi')
local function gen_huge_answer(_, req)
- local answer = req.answer
+ local answer = req:ensure_answer()
ffi.C.kr_pkt_make_auth_header(answer)
answer:rcode(kres.rcode.NOERROR)
@@ -19,7 +19,7 @@ end
local function gen_varying_ttls(_, req)
local qry = req:current()
- local answer = req.answer
+ local answer = req:ensure_answer()
ffi.C.kr_pkt_make_auth_header(answer)
answer:rcode(kres.rcode.NOERROR)