Skip to content

Commit

Permalink
blacklists: initialize backlist net structure
Browse files Browse the repository at this point in the history
Thanks go to Jonathan Hulme from ConnexCS for spotting it.

(cherry picked from commit 58adeca)
  • Loading branch information
razvancrainea committed Dec 8, 2023
1 parent 2d24623 commit fc12787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blacklists.c
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ int fixup_blacklist_net(void** param)
struct bl_net_flags *nf = pkg_malloc(sizeof *nf);
if (!nf)
return E_OUT_OF_MEM;
memset(nf, 0, sizeof *nf);
trim(&tmp);
if (tmp.s[0] == '!') {
nf->flags = BLR_APPLY_CONTRARY;
Expand Down

0 comments on commit fc12787

Please sign in to comment.