author | plazmus <pseudo@egg6.net> | |
Thu, 31 Dec 2009 09:00:25 +0000 (10:00 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 31 Dec 2009 09:05:43 +0000 (10:05 +0100) | ||
commit | 6254a763a3103ee0d3a09726da53dfc8b3bc8dbc | |
tree | ccb1705f623d911e614d55aab7e74926cd3e9a0e | tree | snapshot |
parent | 78a1662567c2fce42a50cdce39f85217b9fbe0ea | commit | diff |
apache plugin: Fix a segmentation fault in the config handling of VerifyPeer / VerifyHost.
Hello,
Today I upgraded a machine from 4.5.2 to 4.9.0. Everything went fine, but
the new version segfaults immediately at startup. With some help from gdb
I tracked down the problem to the apache module. It will occur if one
tries to use the VerifyPeer/VerifyHost options (I guess few people use
these as I don't see complaints?)
When the plugin attempts to read the value of a boolean option, instead of
using the pre-parsed int value, it misdetects the type of the option
(seems a mechanical mistake) and tries to use the string pointer, which is
actually NULL.
I'm sending a patch, it's actually shorter than the description ;)
Thanks to all developers and maintainers of collectd for working on it.
Have a nice holidays.
Hello,
Today I upgraded a machine from 4.5.2 to 4.9.0. Everything went fine, but
the new version segfaults immediately at startup. With some help from gdb
I tracked down the problem to the apache module. It will occur if one
tries to use the VerifyPeer/VerifyHost options (I guess few people use
these as I don't see complaints?)
When the plugin attempts to read the value of a boolean option, instead of
using the pre-parsed int value, it misdetects the type of the option
(seems a mechanical mistake) and tries to use the string pointer, which is
actually NULL.
I'm sending a patch, it's actually shorter than the description ;)
Thanks to all developers and maintainers of collectd for working on it.
Have a nice holidays.
src/apache.c | diff | blob | history |