From a9d6ac1d3f9f55199336b46644fe5a197e8bea60 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sat, 23 Sep 2023 08:16:52 -0700 Subject: [PATCH] fix ca version reply decode --- ca.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ca.lua b/ca.lua index 16f5819..56305fc 100644 --- a/ca.lua +++ b/ca.lua @@ -511,14 +511,14 @@ local function cahost (buf, pkt, t, hlen, msglen, dcount) end local function casearch (buf, pkt, t, hlen, msglen, dcount) - if msglen==0 or (msglen==8 and buf(hlen,1):uint()==0) + if msglen==0 or (msglen==8 and buf(hlen+2,4):uint()==0) then -- server message t:add(fport, buf(4,2)) t:add(fserv , buf(8,4)) t:add(fcid , buf(12,4)) if msglen==8 then - t:add(fver, buf(hlen+2,2)) + t:add(fver, buf(hlen,2)) end pkt.cols.info:append("Search Reply("..buf(12,4):uint().."), ") else