[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Xymon 4.3.0: Beta version available on Sourceforge



On Mon, Feb 09, 2009 at 04:48:48PM -0500, Keith Meserole wrote:
> http://my-server.net/hobbit-seccgi/hobbit-enadis.sh
> 
> "Internal Server Error
> 
> Info does not work - similar errors

I think this is a pretty widespread bug. The attached patch should fix
it, but this code is used throughout Xymon, so a "make clean; make; make
install" would probably be needed afterwards.

For testing, you can skip the "make install" and just copy web/*.cgi
to your ~xymon/server/bin/ directory.

Let me know if it helps.


Regards,
Henrik

Index: lib/sendmsg.c
===================================================================
--- lib/sendmsg.c	(revision 6110)
+++ lib/sendmsg.c	(working copy)
@@ -482,7 +482,10 @@
 			}
 
 			if (oneres == BB_OK) {
-				if (response && response->respstr) addtobuffer(response->respstr, respstr);
+				if (respstr && response && response->respstr) {
+					addtobuffer(response->respstr, respstr);
+					xfree(respstr);
+				}
 				first = 0;
 			}
 		}