Hi.

I hit the bug in the

ipmi-sensors/src/ipmi-sensors-argp.c

In the case the configuration file is not specified at all, the

cmd_args->common.config_file == NULL

Such situation is not handled correctly, the NULL is dereferenced and program abends.

I suggest not to call config_file_parse() at all, when configration doesn't exist, e.g.:

if (config_file_parse (cmd_args->common.config_file,

should be changed to

if (cmd_args->common.config_file != NULL && config_file_parse (cmd_args->common.config_file,

I tried it on my system and it helped.

As alternative, such case can be handled inside of config_file_parse() function.

Hope it help.

Dan


_______________________________________________
Freeipmi-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to