[Nagiosplug-devel] [ nagiosplug-Bugs-655268 ] check_real segmentation fault

noreply at sourceforge.net noreply at sourceforge.net
Tue Dec 17 17:20:11 CET 2002


Bugs item #655268, was opened at 2002-12-17 16:38
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=655268&group_id=29880

Category: Argument proccessing
Group: v1.0 (example)
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin Geddie (klgeddie)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_real segmentation fault

Initial Comment:
The check_real plugin does not work as distributed.  The 
code attempts to check the server assigned to the 
host_name variable, but the host_name variable is never 
assigned a value.

The following patch will fix the code:

*** check_real.c        Mon Dec 16 13:21:50 2002
--- check_real.c.orig   Thu Nov 14 20:04:51 2002
***************
*** 400,413 ****
  int
  validate_arguments (void)
  {
-       int rc = OK;
-
-       if ( server_address  &&  *server_address )
-       {
-               host_name = server_address;
-       } else {
-               rc = ERROR;
-       }
        return OK;
  }

--- 400,405 ----


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=655268&group_id=29880




More information about the Devel mailing list