Forward porting of CGI vulnerability fixes

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2547 5f96b256-904b-4d8d-8c98-d829582c6739
Fixed bug #401: segmentation fault on Solaris when parsing unknown timeperiod directives.

Previously the end of the function xodtemplate_parse_timeperiod_directive 
was referencing a pointer after it had been freed (and NULLed). This 
has been corrected.


git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2551 5f96b256-904b-4d8d-8c98-d829582c6739
base/nebmods: Add mode argument to open()

This patch fixes an attribute error during compilation due to glibc
enforcing the requirement that the mode argument to open() is supplied
when O_CREAT is set in flags.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2556 5f96b256-904b-4d8d-8c98-d829582c6739
base/checks: Add latency data to check_result struct

This trivial patches fixes an issue where service check latency is
always reset to zero after scheduled checks.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2557 5f96b256-904b-4d8d-8c98-d829582c6739