Skip to content

Commit

Permalink
fix ca version reply decode
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Sep 23, 2023
1 parent c9d4f0e commit a9d6ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ca.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9d6ac1

Please sign in to comment.