From a89d738d25cb364a54570fdd52230c8c1e9cb66e Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 10 Feb 2000 02:22:36 +0000 Subject: [PATCH] added "quit\n" to the send string in check_tcp() to properly terminate conn. --- src/lib/Spong/Network/plugins/check_ftp | 2 +- src/lib/Spong/Network/plugins/check_smtp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Spong/Network/plugins/check_ftp b/src/lib/Spong/Network/plugins/check_ftp index f0c4c1e..71dee21 100755 --- a/src/lib/Spong/Network/plugins/check_ftp +++ b/src/lib/Spong/Network/plugins/check_ftp @@ -4,7 +4,7 @@ $PLUGINS{'ftp'} = \&check_ftp; # Check FTP service using the built-in check_simple subroutine sub check_ftp { my ($host) = @_; - return &check_simple( $host, 21, "", "^\s*220", "ftp" ); + return &check_simple( $host, 21, "quit\n", "^\s*220", "ftp" ); } 1; diff --git a/src/lib/Spong/Network/plugins/check_smtp b/src/lib/Spong/Network/plugins/check_smtp index d95ad1b..5bb9e42 100755 --- a/src/lib/Spong/Network/plugins/check_smtp +++ b/src/lib/Spong/Network/plugins/check_smtp @@ -4,7 +4,7 @@ $PLUGINS{'smtp'} = \&check_smtp; # Check the smtp service with the built-in check_simple routine sub check_smtp { my ($host) = @_; - return &check_simple( $host, 25, "", "^\s*220", "smtp" ); + return &check_simple( $host, 25, "quit\n", "^\s*220", "smtp" ); } 1; -- 2.30.2