From 4a92f33a09e8a8d4db6e3d11725db68d2c4bfc2d Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Mon, 7 Feb 2000 03:07:31 +0000 Subject: [PATCH] added "quit" command to check for proper connection termination --- 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