--0-222975228-1289257495=:86183
Content-Type: multipart/alternative; boundary="0-972957973-1289257495=:86183"
--0-972957973-1289257495=:86183
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,=0A=0Aa small patch that stomps down a bug in parsing=0Aempty host/s=
ervice-groups.=0A=0Astrtok is fed a NULL value for the members in an=0Aempt=
y host/service-group. Instead of initiating=0Aa new string value, strtok co=
ntinues were it left=0Aof with its previous non-NULL value and returns=0Atr=
ue bogus crap.=0A=0AIn rare occations this resuts in a "zombie" host/=0Aser=
vice with a strange random name. I've been really=0Aconfused by configurati=
ons that pass the verification=0A(nagios -v ..), but fail on nagios startup=
. Nasty!=0A=0AThe attached patch makes sure that strtok is never=0Acalled w=
ith a NULL value for host/service group=0Amembers. Please include or commen=
t.=0A=0AThanks in adv=0A/S-G=0A____________________________________________=
__=0ASven-G=F6ran Bergh=0ASystemasis AB=0A=0A=0A
--0-972957973-1289257495=:86183
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,a small patch that st=
omps down a bug in parsingempty host/service-groups.strtok is f=
ed a NULL value for the members in anempty host/service-group. Instead =
of initiatinga new string value, strtok continues were it leftof wi=
th its previous non-NULL value and returnstrue bogus crap.In ra=
re occations this resuts in a "zombie" host/service with a strange rand=
om name. I've been reallyconfused by configurations that pass the verif=
ication(nagios -v ..), but fail on nagios startup. Nasty!The at=
tached patch makes sure that strtok is nevercalled with a NULL value fo=
r host/service groupmembers. Please include or comment.Thanks i=
n adv/S-G____________________________________=
__________Sve=
n-G=F6ran Bergh=
Systemasis AB=
--0-972957973-1289257495=:86183--
--0-222975228-1289257495=:86183
Content-Type: text/plain; name="nagios-3.2.3-EmptyGroups-patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="nagios-3.2.3-EmptyGroups-patch.txt"
LS0tIG5hZ2lvcy0zLjIuMy94ZGF0YS94b2R0ZW1wbGF0ZS5jLm9yaWcJMjAx
MC0xMS0wOCAyMDoyMDo1MS4wMDAwMDAwMDAgKzAxMDAKKysrIG5hZ2lvcy0z
LjIuMy94ZGF0YS94b2R0ZW1wbGF0ZS5jCTIwMTAtMTEtMDggMjM6MDE6NTcu
MDAwMDAwMDAwICswMTAwCkBAIC0xMDE5MiwxNiArMTAxOTIsMTggQEAKIAkJ
cmV0dXJuIEVSUk9SOwogCSAgICAgICAgfQogI2VuZGlmCi0JZm9yKGhvc3Rf
bmFtZT1zdHJ0b2sodGhpc19ob3N0Z3JvdXAtPm1lbWJlcnMsIiwiKTtob3N0
X25hbWUhPU5VTEw7aG9zdF9uYW1lPXN0cnRvayhOVUxMLCIsIikpewotCQlz
dHJpcChob3N0X25hbWUpOwotCQluZXdfaG9zdHNtZW1iZXI9YWRkX2hvc3Rf
dG9faG9zdGdyb3VwKG5ld19ob3N0Z3JvdXAsaG9zdF9uYW1lKTsKLQkJaWYo
bmV3X2hvc3RzbWVtYmVyPT1OVUxMKXsKKwlpZih0aGlzX2hvc3Rncm91cC0+
bWVtYmVycyE9TlVMTCl7CisJCWZvcihob3N0X25hbWU9c3RydG9rKHRoaXNf
aG9zdGdyb3VwLT5tZW1iZXJzLCIsIik7aG9zdF9uYW1lIT1OVUxMO2hvc3Rf
bmFtZT1zdHJ0b2soTlVMTCwiLCIpKXsKKwkJCXN0cmlwKGhvc3RfbmFtZSk7
CisJCQluZXdfaG9zdHNtZW1iZXI9YWRkX2hvc3RfdG9faG9zdGdyb3VwKG5l
d19ob3N0Z3JvdXAsaG9zdF9uYW1lKTsKKwkJCWlmKG5ld19ob3N0c21lbWJl
cj09TlVMTCl7CiAjaWZkZWYgTlNDT1JFCi0JCQlsb2dpd
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]