Skip to content

Commit

Permalink
Merge pull request #20 from netfoundry/v0.5.3_release_candidate-netfo…
Browse files Browse the repository at this point in the history
…undry

V0.5.3 release candidate netfoundry
  • Loading branch information
r-caamano authored Dec 19, 2023
2 parents c77786d + 8a95d07 commit 9f1bd70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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 to 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

0 comments on commit 9f1bd70

Please sign in to comment.