<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt;color:#000000;">Hi all,<br><br>a small patch that stomps down a bug in parsing<br>empty host/service-groups.<br><br>strtok is fed a NULL value for the members in an<br>empty host/service-group. Instead of initiating<br>a new string value, strtok continues were it left<br>of with its previous non-NULL value and returns<br>true bogus crap.<br><br>In rare occations this resuts in a "zombie" host/<br>service with a strange random name. I've been really<br>confused by configurations that pass the verification<br>(nagios -v ..), but fail on nagios startup. Nasty!<br><br>The attached patch makes sure that strtok is never<br>called with a NULL value for host/service group<br>members. Please include or comment.<br><br>Thanks in adv<br>/S-G<br><font size="3"><span style="font-family:
 courier,monaco,monospace,sans-serif;">______________________________________________</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Sven-Göran Bergh</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier,monaco,monospace,sans-serif;">Systemasis AB</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier,monaco,monospace,sans-serif;"></span></font></div><br></body></html>