Page 1 of 1

[Nagios-devel] Patch for seg fault when submitting two 2.0 CHANGE_ commands

Posted: Wed Mar 24, 2004 7:33 am
by Guest
This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C4118B.36BD79D0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit


The attached patch fixes a seg fault which occurs in Nagios 2.0 when
submitting a CHANGE_NORMAL_SVC_CHECK_INTERVAL or
CHANGE_MAX_SVC_CHECK_ATTEMPTS command. Looks like a copy-and-paste
thing....

Regards,
Chris

------=_NextPart_000_000C_01C4118B.36BD79D0
Content-Type: application/octet-stream;
name="nagios-segv-on-change-interval.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nagios-segv-on-change-interval.patch"

*** ../nagios-orig/base/commands.c Sun Jan 4 21:45:35 2004=0A=
--- base/commands.c Tue Mar 23 18:05:50 2004=0A=
***************=0A=
*** 2565,2571 ****=0A=
return ERROR;=0A=
=0A=
/* verify that the service is valid */=0A=
! temp_service=3Dfind_service(temp_host->name,svc_description);=0A=
if(temp_service=3D=3DNULL)=0A=
return ERROR;=0A=
}=0A=
--- 2565,2571 ----=0A=
return ERROR;=0A=
=0A=
/* verify that the service is valid */=0A=
! temp_service=3Dfind_service(host_name,svc_description);=0A=
if(temp_service=3D=3DNULL)=0A=
return ERROR;=0A=
}=0A=
***************=0A=
*** 2698,2704 ****=0A=
return ERROR;=0A=
=0A=
/* verify that the service is valid */=0A=
! temp_service=3Dfind_service(temp_host->name,svc_description);=0A=
if(temp_service=3D=3DNULL)=0A=
return ERROR;=0A=
}=0A=
--- 2698,2704 ----=0A=
return ERROR;=0A=
=0A=
/* verify that the service is valid */=0A=
! temp_service=3Dfind_service(host_name,svc_description);=0A=
if(temp_service=3D=3DNULL)=0A=
return ERROR;=0A=
}=0A=

------=_NextPart_000_000C_01C4118B.36BD79D0--






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]