From 35258d44034dc00b5af95d5da2f55a03a262c4c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 30 Sep 2019 13:20:43 +0200 Subject: [PATCH] lua bindings: fix a regression from b42195a2 I'm really sorry; I didn't notice and it only hit parts that *apparently* aren't tested normally. Only 32-bit systems would be affected, due to the structure only changing ABI on 32-bit systems. --- NEWS | 9 +++++++++ daemon/lua/kres.lua | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 8c1360ddb..00f632349 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,12 @@ +Knot Resolver 4.2.2 (2019-10-dd) +================================ + +Bugfixes +-------- +- lua bindings: fix a 4.2.1 regression on 32-bit systems (#514) + which also fixes libknot 2.9 support on all systems + + Knot Resolver 4.2.1 (2019-09-26) ================================ diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 5198c2fcd..8dc7b9cf3 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -65,14 +65,14 @@ if not sover_pos then error('unexpected libknot soname: ' .. libknot_SONAME) end local sover = string.sub(libknot_SONAME, sover_pos , sover_pos) -if sover == '8' then +if sover == '9' then knot_rdataset_t_cdef = [[ typedef struct { uint16_t count; knot_rdata_t *rdata; } knot_rdataset_t; ]] -elseif sover == '9' then +elseif sover == '1' then -- it's 10 really, but this is simpler knot_rdataset_t_cdef = [[ typedef struct { uint16_t count; -- 2.47.2