Empty host/service-group patch
Sven-Göran Bergh
sgb at systemasis.com
Tue Nov 9 00:04:55 CET 2010
Hi all,
a small patch that stomps down a bug in parsing
empty host/service-groups.
strtok is fed a NULL value for the members in an
empty host/service-group. Instead of initiating
a new string value, strtok continues were it left
of with its previous non-NULL value and returns
true bogus crap.
In rare occations this resuts in a "zombie" host/
service with a strange random name. I've been really
confused by configurations that pass the verification
(nagios -v ..), but fail on nagios startup. Nasty!
The attached patch makes sure that strtok is never
called with a NULL value for host/service group
members. Please include or comment.
Thanks in adv
/S-G
______________________________________________
Sven-Göran Bergh
Systemasis AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101108/1fc20181/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-3.2.3-EmptyGroups-patch.txt
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101108/1fc20181/attachment.txt>
-------------- next part --------------
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list