aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-04-06 13:00:45 +0200
committerRobin Krahl <me@robin-krahl.de>2018-04-06 13:00:45 +0200
commit48bae972f12d8e68550abbef31256bec2457f0a0 (patch)
tree8c0b7420f7bf85f254586b142e986d622e10f0fb
parent76c9c6b0d280eb7e82449d3fa6b81f784b1980c7 (diff)
downloadmidbro-48bae972f12d8e68550abbef31256bec2457f0a0.tar.gz
midbro-48bae972f12d8e68550abbef31256bec2457f0a0.tar.bz2
Fix typos in mid.bro, add actual value to output
-rw-r--r--script/mid.bro7
1 files changed, 4 insertions, 3 deletions
diff --git a/script/mid.bro b/script/mid.bro
index 04060d6..3ba0f1d 100644
--- a/script/mid.bro
+++ b/script/mid.bro
@@ -123,9 +123,10 @@ function midbro_generate_events(transaction: Transaction, c: connection,
midbro_generate_event(transaction, c, headers, registers, regtype,
filter_mem_addr - transaction$start_address);
if (filter_mem_addr > transaction$start_address) {
- local other_val = registers[filter_mem_addr - tansaction$start_address - 1];
- local f = open_for_append("/home/pi/pasad/data/values_other.txt");
- print f, other_val;
+ local val = registers[filter_mem_addr - transaction$start_address];
+ local other_val = registers[filter_mem_addr - transaction$start_address - 1];
+ local f = open_for_append("/home/pi/data/pasad/values_other.txt");
+ print f, val, other_val;
close(f);
}
} else {