Fix byte-order issue during ndpiReader tcp/udp src/dst port serialization. Fixes #1608. (#1614)

* fixed possible memory leak caused by an invalid call to `node_proto_guess_walker()` during serialization
 * execute serialization code while running regression tests

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2022-07-03 11:16:52 +02:00
committed by GitHub
parent 7c5c811eb0
commit 59b00b00a7
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ build_results() {
#echo $f
# create result files if not present
if [ ! -f result/$f.out ]; then
CMD="$READER -q -t -i pcap/$f -w result/$f.out -v 2"
CMD="$READER -q -K JSON -k /dev/null -t -i pcap/$f -w result/$f.out -v 2"
$CMD
fi
done
@@ -73,7 +73,7 @@ check_results() {
fi
if [ -f result/$f.out ]; then
CMD="$READER -q -t -i pcap/$f -w /tmp/reader.out -v 2"
CMD="$READER -q -K JSON -k /dev/null -t -i pcap/$f -w /tmp/reader.out -v 2"
$CMD
CMD_RET=$?
if [ $CMD_RET -eq 0 ]; then