diff --git a/src/nl.c b/src/nl.c index a2ea2ced9..6f4339793 100644 --- a/src/nl.c +++ b/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 */ /* @@ -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 diff --git a/src/pmacct-build.h b/src/pmacct-build.h index 509b40754..1e2b7966d 100644 --- a/src/pmacct-build.h +++ b/src/pmacct-build.h @@ -1 +1 @@ -#define PMACCT_BUILD "20200120-00" +#define PMACCT_BUILD "20200121-00"