Skip to content

Commit

Permalink
* fix, nl.c: pedantic initialization of req structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
paololucente committed Jan 21, 2020
1 parent eb5a5b5 commit ff77d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/nl.c
@@ -1,6 +1,6 @@
/*
pmacct (Promiscuous mode IP Accounting package)
pmacct is Copyright (C) 2003-2019 by Paolo Lucente
pmacct is Copyright (C) 2003-2020 by Paolo Lucente
*/

/*
Expand Down Expand Up @@ -52,6 +52,8 @@ void pm_pcap_cb(u_char *user, const struct pcap_pkthdr *pkthdr, const u_char *bu
u_int32_t iface32 = 0;
u_int32_t ifacePresent = 0;

memset(&req, 0, sizeof(req));

if (cb_data->sig.is_set) sigprocmask(SIG_BLOCK, &cb_data->sig.set, NULL);

/* We process the packet with the appropriate
Expand Down
2 changes: 1 addition & 1 deletion src/pmacct-build.h
@@ -1 +1 @@
#define PMACCT_BUILD "20200120-00"
#define PMACCT_BUILD "20200121-00"

0 comments on commit ff77d4b

Please sign in to comment.