Re: [pmacct-discussion] uninitialized req passed to plugin_requests and load_id_file in pm_pcap_cb??

2020-01-21 Thread Paolo Lucente
Hi Mikhail, I see, yes. The reason nothing happens (not out of coincidences :-)) is that all the reads are checking whether we are in the context of a tee plugin (which does not apply to pmacctd / uacctd). But i agree with you: that is recipe for potential disaster so i committed a memset()

Re: [pmacct-discussion] uninitialized req passed to plugin_requests and load_id_file in pm_pcap_cb??

2020-01-21 Thread Mikhail Sennikovsky
Hi Paolo, The pm_pcap_cb has however its own instance of struct plugin_requests req : https://github.com/pmacct/pmacct/blob/d72440dc9a7d0d0a7ed9502f1dd31b90105b1d95/src/nl.c#L51 , and noone zeroes it up before using it seems. Mikhail On Tue, 21 Jan 2020 at 02:25, Paolo Lucente wrote: > > > Hi