Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

V0.5.3 release candidate #135

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
# [0.5.3] - 2023-12-19

###

- Fixed issue causing valgrind memory error due non-initialized struct in add_if_index() in zfw.c.

# [0.5.2] - 2023-11-27

###
Expand Down
4 changes: 2 additions & 2 deletions src/zfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ char *monitor_interface;
char *tc_interface;
char *object_file;
char *direction_string;
const char *argp_program_version = "0.5.2";
const char *argp_program_version = "0.5.3";
struct ring_buffer *ring_buffer;

__u8 if_list[MAX_IF_LIST_ENTRIES];
Expand Down Expand Up @@ -1359,7 +1359,7 @@ int add_if_index(struct interface intf)
open_if_map();
}
if_map.map_fd = if_fd;
struct ifindex_ip4 o_ifip4;
struct ifindex_ip4 o_ifip4 = {0};
if_map.key = (uint64_t)&intf.index;
if_map.flags = BPF_ANY;
if_map.value = (uint64_t)&o_ifip4;
Expand Down