Xymon Mailing List Archive search

Xymond crashing when scheduling disable in 4.3.15

list Henrik Størner
Mon, 17 Feb 2014 13:16:20 +0100
Message-Id: <user-b9b6199da2c3@xymon.invalid>

 

Den 2014-02-17 12:46, Johan Sjöberg skrev: 
Hi. 

We recently
updated our Xymon installation to 4.3.15. Now it seems like we cannot
schedule disable from the "Enable/disable" page. We get this error in
the xymond.log:
Same in 4.3.16, it seems. Problem is in line 4368 -
there is a "NULL" missing in the addtobuffer_many() call.

Index:
xymond/xymond.c
===================================================================
---
xymond/xymond.c (revision 7439)
+++ xymond/xymond.c (working copy)
@@
-4165,7 +4165,7 @@

 for (swalk = schedulehead; (swalk); swalk =
swalk->next) {
 snprintf(tbuf, sizeof(tbuf), "%d|%d", swalk->id,
(int)swalk->executiontime);
- addtobuffer_many(response, tbuf, "|",
swalk->sender, "|", nlencode(swalk->command));
• addtobuffer_many(response, tbuf, "|", swalk->sender, "|",
nlencode(swalk->command), NULL);
 }

 xfree(msg->buf); 

Will put this
into 4.3.17. 

Regards,
Henrik