Hi all,

I was running through the pm_pcap_cb code, and it looks like the "req"
passed to exec_plugins(&pptrs, &req); at
https://github.com/pmacct/pmacct/blob/d72440dc9a7d0d0a7ed9502f1dd31b90105b1d95/src/nl.c#L167
and to load_id_file at
https://github.com/pmacct/pmacct/blob/d72440dc9a7d0d0a7ed9502f1dd31b90105b1d95/src/nl.c#L179
and below
is actually uninitialized. (See struct plugin_requests req;  at
https://github.com/pmacct/pmacct/blob/d72440dc9a7d0d0a7ed9502f1dd31b90105b1d95/src/nl.c#L51
)
Note that the exec_plugins and load_id_file actually read from req
rather than write to it.
If I'm getting this right, that code might be working just by coincidence.

Thanks,
Mikhail

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to