[Nagiosplug-devel] [ nagiosplug-Patches-641177 ] check_tcp fails to detecd some problems
noreply at sourceforge.net
noreply at sourceforge.net
Thu Nov 21 20:18:02 CET 2002
Patches item #641177, was opened at 2002-11-20 11:48
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=641177&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: cagri coltekin (coltekin)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_tcp fails to detecd some problems
Initial Comment:
check_tcp uses same buffer for sending and receiving for
send/expect strings. if remote service closes the
connection without
any data, check_tcp uses the same buffer for
comparison, and
if you expect to have same string, it fails to detect
the problem.
The small patch below works for me. It also ensures
that NULL string
is not passed to strip() (so strlen()) which core dumps
on my
(debian 3.0 with linux kernel 2.4.19, glibc 2.2.5) box
at least. This
is against nagiosplug-1.3-beta1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=641177&group_id=29880
More information about the Devel
mailing list