diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2019-09-13 18:26:19 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2020-10-21 13:05:55 +0200 |
commit | 99e014ac6352a6ded4142f3c1b9b530dc02e0baf (patch) | |
tree | 638194e70bc14be0289e86c33aaab2df39ca301c /tests/config | |
parent | iterate nitpick: drop unused function parameter (diff) | |
download | knot-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.lua | 4 |
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) |