Hello Paolo,

yeah, I see the issue.
char* host is not checked and might be void, so strstr tries to read from 0x0. I use version 1.7.6 by package system, so switching to a git and master branch is not an option. But I can apply a patch. As quickfix I simpy supplied a sql_host setting in conf, which prevents the crashes.

Thanks

Goeran


Am 15.04.2021 um 02:21 schrieb Paolo Lucente:

Hi Goran,

Thanks for the extra info, it helped. It should be the case that master code has already a fix for the issue. See:

https://github.com/pmacct/pmacct/commit/1922062277d87da024938cc3057df9a4c3725e76

I may suggest to run master code from GitHub or to apply this patch to 1.7.6 to test it working for you.

Paolo


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

Reply via email to