Skip to content

Commit

Permalink
Fix the name of the variable we chek when we check to see if the fiel…
Browse files Browse the repository at this point in the history
…ds are populated, 'ok' doesn't exist anywhere else in the script and causes decode failures when Lua checks to see if it's defined.
  • Loading branch information
Nicholas Chappell committed Aug 1, 2016
1 parent db08aa2 commit 6d9aed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox/lua/decoders/bind_query_log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function process_message ()
fields = grammar:match(query_log_line)

--If fields is empty, exit immediately:
if not ok then return -1, "Failed to parse the BIND query log line." end
if not fields then return -1, "Failed to parse the BIND query log line." end

--Set the time in the message we're generating and set it to nil in the original log line:
msg.Timestamp = fields.time
Expand Down

0 comments on commit 6d9aed9

Please sign in to comment.